首页 > 开发 > PHP > 正文

PHP 开发环境配置(测试开发环境)

2024-05-04 22:09:29
字体:
来源:转载
供稿:网友

1. 创建一个文件(test.php)

我的路径如下

F:/Projects/PHPTest/test.php

2. 用记事本打开Apache配置文件

D:/Program Files/Zend/Apache2/conf/httpd.conf

在最后一行加入

Alias /Test "F:/Projects/PHPTest"

<Location /Test>
  Order deny,allow
  Allow from all
</Location>

3. 重新启动Apache(通过任务通知栏中的Apache Monitor) 

4. 在浏览器中打开http://localhost/test.php,如果开发环境正确配置,则会显示页面如下。

ccc

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表