Page 1 of 1

problem in running file

PostPosted: 11. June 2011 19:36
by kanak
hi
when i am running my php file in xampp it gives object not found.
i have put my file in xampp/htdocs folder and running it as http://localhost/hello.php

Re: problem in running file

PostPosted: 11. June 2011 19:53
by Altrea
not enough information.
Is it a HTTP 404 error? or a php error?

I just can guess: Your file isn't named hello.php, but error.php.txt or something else.

Your Apache error log can give some more information for your error to us too.

Re: problem in running file

PostPosted: 12. June 2011 10:05
by kanak
the error is 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
12-06-2011 14:32:50
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
my file name is correct

Re: problem in running file

PostPosted: 12. June 2011 10:11
by kanak
the version i am running is 1.7.3 wid windws 7

Re: problem in running file

PostPosted: 12. June 2011 10:13
by Sharley
Read the \xampp\apache\logs\error.log file which will give a more accurate reason for your 404 file not found error message.

Re: problem in running file

PostPosted: 12. June 2011 10:25
by kanak
i solvd prblm by using php editor but plz tell me the reason for the problem.
thnx..........

Re: problem in running file

PostPosted: 12. June 2011 10:32
by Sharley
kanak wrote:i solvd prblm by using php editor but plz tell me the reason for the problem.
thnx..........
How can we tell you the reason for your problem as you have not told us anything that could help us help you - what did the error.log file have to say about your 404 error?
Or don't you know how to read the error.log file either?

Re: problem in running file

PostPosted: 12. June 2011 12:07
by Altrea
just a guess:
before you have used Windows Notepad to create the file.

Windows notepad extend the filename with a .txt extension if you don't change the file type in the save dialog.