How to debug php in Eclipse

I'm new to PHP ..... (In the Eclips IDE) If I run the PHP code with Run As -> "PHP Script" this will work fine, but Run As -> "PHP Web Page" throws an error like

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

+4
source share
2 answers

Do you use any XAMPP or WAMP service? Have you placed your files correctly? It says that apache could not find your file. that is, you either did not configure the environment properly, or your file is in the wrong place.

+1
source

If you are using XAMPP, put the eclipse project workspace in the XAMPP\htdocs\ folder. if you use WAMP, put it in the WAMP\www\ folder. You will find the XAMPP or WAMP folders in the directory in which you installed it.

for reference: enter image description here

+4
source

Source: https://habr.com/ru/post/1344734/


All Articles