Home  >  Article  >  php教程  >  Windows上使用PHP 5.4内置Web服务器

Windows上使用PHP 5.4内置Web服务器

WBOY
WBOYOriginal
2016-06-13 11:15:031096browse

PHP 5.4 内置一个 Web 服务器,对于本机开发而言非常方便,因为你无需再安装类似 Apache 之类的 Web 服务器软件,你可直接在命令行中启动 PHP 的 Web 服务器。

启动方法很简单,在命令行中进入项目所在目录,然后使用 -S 参数来启动服务,你需要指定主机地址和端口,所有的请求信息将在控制台窗口中显示,如下图所示:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn