如何在Eclipse中调试php

时间:2011-03-22 06:34:23

标签: php eclipse

我是PHP新手..... (在Eclips IDE中)如果我使用Run As运行PHP代码 - > “PHP脚本”,这将工作正常,但运行方式 - > “PHP网页”将错误视为

Object not found!
The requested URL was not found on this server. 
If you entered the URL manually please check your spelling and try again. 

If you think this is a server error, please contact the webmaster. 

Error 404
localhost
03/22/11 12:04:12
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 
OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 

请帮帮我.... Gnanendra

2 个答案:

答案 0 :(得分:4)

如果您正在使用XAMPP,请将您的eclipse项目工作区放在XAMPP\htdocs\文件夹中。如果您使用WAMP,请将其放在WAMP\www\文件夹中。你会在你安装它的目录中找到XAMPP或WAMP文件夹。

供您参考: enter image description here

答案 1 :(得分:1)

您使用的是XAMPP或WAMP服务吗?你把文件正确放了吗?它说apache找不到你的文件。即你没有正确配置你的环境或你的文件在错误的地方。