有没有简单的PHP开发服务器? [英] Is there a simple PHP development server?
问题描述
使用Python编写Web应用程序时,运行开发服务器很容易. Django和Google App Engine(GAE)均附带简单的服务器.
When writing web apps in Python, it's brain dead easy to run a development server. Django and Google App Engine (GAE) both ship with simple servers.
我要寻找的主要功能是无配置.我想要像GAE开发服务器这样的东西,您只需在启动服务器时将应用程序的目录作为参数传递给它即可.
The main feature I'm looking for is no configuration. I want something like the GAE dev server where you just pass the directory of the app as a parameter when the server is started.
有没有理由使PHP更加困难?
Is there a reason that this is more difficult with PHP?
推荐答案
使用XAMPP: http://www.apachefriends.org/en/xampp.html 它易于安装和配置.
Use XAMPP: http://www.apachefriends.org/en/xampp.html Its easy to install and config.
自PHP 5.4(此答案发布两年后)以来,已经有了内置的Web服务器.今天,这是不准确的,请使用k0pernikus在其答案中提供的方法.
since PHP 5.4 (which was released 2 years after this answer) there's a built-in web-server. Today this is inaccurate, please use the method provided by k0pernikus in his answer.
这篇关于有没有简单的PHP开发服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!