PHP 7.2.0 Beta 3 Released


在本教程中,假设用户的服务器已经安装并运行了 PHP,所有以 .php 结尾的文件都将由 PHP 来处理。在大部分的服务器上, 这是 PHP 的默认扩展名,不过,也请询问服务器管理员以确认。如果服务器支持 PHP ,则不需要做任何事情。只用建立 .php 文件,并把它们放置 到 web 目录中,服务器将神奇地自动解析这些文件。不用编译任何东西,也不用安装 任何其它的工具,仅仅只需把这些使用了 PHP 的文件想象成简单的 HTML 文件,其中 只不过多了一种新的标识符,在这里可以做各种各样的事情。

假设用户希望在本地机器开发以节约宝贵的带宽。在这种情况下,需要安装一个诸如 » Apache 的 web 服务器,当然还有 » PHP。可能还希望安装一个数据库,例如 » MySQL

可以一个个的安装它们或选择一个更简单的方法。可以参考本手册中 PHP 安装说明的相关章节(假设已经配置好了某个 web 服务器)。若在自己安装 PHP 时出现了问题,建议在» 安装邮件列表中询问。如果想使用更简便的方法安装 PHP,那么可以考虑» 获取一个预先配置的安装包,用这个安装包,只用点击几下鼠标,就可以自动地安装所有这些系统。在任何操作系统下建立有 PHP 支持的 web 服务器都十分简单,包括 MacOSX、Linux 和 Windows。在 Linux 下,会发现 » rpmfind» PBone 能够在获取 RPM 时提供帮助。也可以使用 » apt-get 搜索 Debian 的相关软件包。

add a note add a note

User Contributed Notes 7 notes

10 days ago
Very simple und powerfull PHP-server is QuickPHP from
Ben Latham
10 months ago
For beginners looking to develop on their own machine, XAMPP is an option. It contains the requirements for a development server mentioned in this tutorial (Apache, PHP and MariaDB - which is an alternative to MySQL). Its advantage over LAMPP and MAMPP are that it has versions for multiple operating systems including Linux.
2 months ago
WAMP is a great start for most beginners on a Windows platform like stated above. A suggestion would be to using PHP with Graph Databases as well. Maybe taking a look at the Neo4j PHP-client.
drj at pobox dot com
8 months ago
Running a standalone server with

php -S 0:8765

is quite simple and has much to commend it. You can then visit the URL localhost:8765/whatever.php
Madison Bi
10 months ago
WAMP is the most convenience program for beginner,it is contain Apache,Mysql,PHP, that is means your operation system is Windows.
aminulislam dot mme at gmail dot com
6 months ago
XAMPP is very useful as php server. This package helps to run any php file in your Browser. just write the directory and go to your php site
11 months ago
I would recommend to beginners WAMP (windows) or MAMP (mac) as this installs Apache, Mamp and MySQL all in one go :)
To Top