I am using Eclipse MARS edition and getting my feet wet with php. I want to know how to configure eclipse so that when I run the php file it will open it in http://localhost. I have XAMPP already installed and it is working. How do I do this?
答案 0 :(得分:1)
暂停你的apache服务器 2 - 更改c:\ xampp \ apache \ conf \ httpd.conf:
DocumentRoot "xxxxxxxxx" <Directory "xxxxxxxxx">
而不是xxxxxxxxx使用eclipse现在使用的工作空间。 3 - 开始你的阿帕奇 4集运行配置 5 - 添加PHP Web应用程序 6 - 配置服务器:
Server Name: http://localhost/yourworkspace Base URL : http://localhost Document Root: yourworkspace on your file system
7-Path Mapping:
服务器上的路径:/和工作区中的路径:/ yourworkspace
8完成,跑步和享受:)