How to Debug php in Eclipse

2020-07-18 03:54发布

问题:

I am new to PHP..... (In Eclips IDE) If i run the PHP code with Run As --> "PHP Script", that will work fine but Run As --> "PHP Web Page" is throwing the error as

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 

Please help me.... Gnanendra

回答1:

Are you using any XAMPP or WAMP service? Did you place your files properly? It says the apache could not find your file. i.e. you've either not configured your environment properly or your file is at a wrong place.



回答2:

If you are using XAMPP place your eclipse project workspace in the XAMPP\htdocs\ folder. if you use WAMP then place it in the WAMP\www\ folder. you'll find the XAMPP or WAMP folders in the directory where you have installed it.

for your reference:



标签: php eclipse