4

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
  • 2
    I thought var_dump was the debugger for PHP Commented Mar 22, 2011 at 6:45

2 Answers 2

4

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: enter image description here

Sign up to request clarification or add additional context in comments.

2 Comments

Can I have more then 1 projects in htdocs directory(folder)..??
yes, you can have more than one projeccts in htdocs provided they are all in seperate directories. eg: to run each projects; in the browser just type the directory name; localhost/project1, localhost/project2,....
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.

6 Comments

Yes i have installed XAMPP, which contains Apache, MySql and php.
The your file must be at wrong place. is it under htdocs directory. Your eclipse workspace also need to be set here.
Yes, my eclipse workspace is not under htdocs directory, its in other then "C" drive. And please could you tell me the path of the htdocs directory.
You can set the path to htdocs in XAMPP, too. So you don't have to move your Eclipse project...
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.