problem in running file

Problems with the Windows version of XAMPP, questions, comments, and anything related.

problem in running file

Postby kanak » 11. June 2011 19:36

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
kanak
 
Posts: 4
Joined: 11. June 2011 19:29

Re: problem in running file

Postby Altrea » 11. June 2011 19:53

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: problem in running file

Postby kanak » 12. June 2011 10:05

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
kanak
 
Posts: 4
Joined: 11. June 2011 19:29

Re: problem in running file

Postby kanak » 12. June 2011 10:11

the version i am running is 1.7.3 wid windws 7
kanak
 
Posts: 4
Joined: 11. June 2011 19:29

Re: problem in running file

Postby Sharley » 12. June 2011 10:13

Read the \xampp\apache\logs\error.log file which will give a more accurate reason for your 404 file not found error message.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: problem in running file

Postby kanak » 12. June 2011 10:25

i solvd prblm by using php editor but plz tell me the reason for the problem.
thnx..........
kanak
 
Posts: 4
Joined: 11. June 2011 19:29

Re: problem in running file

Postby Sharley » 12. June 2011 10:32

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?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: problem in running file

Postby Altrea » 12. June 2011 12:07

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests