XAMPP搭建PHP运行环境
1、XAMPP安装完成后,默认工作目录是:xampp\htdocs,将您编写的php文件放到该目录下,启动apache服务后,即可通过http://localhost/myphp.php来访问了。2、工作目录是在文件D:\xampp\apache\conf\httpd.conf中配置的,用户可以根据自己的需要进行修改。
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/xampp/htdocs"
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/xampp/htdocs">
3、为了方便开发调试,将XAMPP工作目录指向集成开发工具EasyEclipse的工作空间。
如:DocumentRoot "D:/workspace_php/php1"
页:
[1]