English 中文(简体)
我如何在没有网络服务器的情况下管理一个营地?
原标题:How can I run a php without a web server?
  • 时间:2010-11-29 08:27:59
  •  标签:
  • php

我愿问,我是否能够在没有安装网络服务器的情况下运行一个实验室。 我是否必须使用像国际地理信息小组这样的实验室,并通过指挥线管理我的网页? 如果是的话,我必须选择什么步骤,通过安装营地? 我指的是作为农研组的优惠以及这一步骤之后的构成部分?

I installed the php 5.3.3 but is seems not working, I get several message that the php5ts.dll is missing and when I put that file in my ext folder other error messages appear. Are there any configuration files or steps that I have to use? (is php 5.3.3 suitable for doing something like this?)

如果我需要安装一个网络服务器,我如何能够通过指挥线操作我的营地代码?

最佳回答

通常,在成功安装后,你就能够管理一个营地档案:

$ /path/to/php myfile.php // unix way
C:phpphp.exe myfile.php // windows way

http://www.php.net/manual/en/features.commandline.introduction.php“rel=“noretinger”>here


值得补充的是,从第5.4版开始,PHP能够自行运行一个网络服务器。 你们可以这样做,用你希望从以下几页页的夹子来管理这一法典:

$ php -S localhost:8000

你们可以更多地了解如何以网络服务器方式运行一种PHP:here

问题回答

对于窗户系统,你应当能够以以下步骤来管理 php:

  1. Download php version you want to use and put it in c:php.
  2. append ;c:php to your system path using cmd or gui.
  3. call $ php -S localhost:8000 command in a folder which you want to serve the pages from.

PHP是一种类似于ash或 p或 per的普通简易语言。 因此,用剪辑的文字至少是装lin。

Example PHP file:

#!/usr/bin/env php

<?php

echo("Hello World!
")

?>

• 如何管理:

$ chmod 755 hello.php  # do this only once
$ ./hello.php




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签