run php script using http://localhost/xampp/htdocs/ [SOLVED]

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

run php script using http://localhost/xampp/htdocs/ [SOLVED]

Postby binny » 21. December 2011 10:49

Downloaded xampp. Http://localhost/xampp working fine. Unable to load my file named demo.php which i had saved in xampp/htdocs/igif (directory). When i tried to run through ie by calling http://localhost/xampp/htdocs/igif/demo.php it shows error

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/21/11 15:17:51
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

The file contains just only one line
"
<html>
<body>

<?php
echo "Hello World";
?>

</body>
</html>

"
binny
 
Posts: 3
Joined: 20. December 2011 08:06
Operating System: windows xp

Re: run php scrip file through http://localhost/xampp/htdocs

Postby Sharley » 21. December 2011 10:56

binny wrote:http://localhost/xampp/htdocs/igif/demo.php
This is incorrect.

htdocs = localhost

Try
http://localhost/igif/demo.php


New users can find self help by reading these first:
readme_en.txt file in the xampp folder.
http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Some useful reading that may help you help us to find suitable solutions:
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670
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: run php scrip file through http://localhost/xampp/htdocs

Postby binny » 22. December 2011 09:35

Thanks sharley. Thanks.
binny
 
Posts: 3
Joined: 20. December 2011 08:06
Operating System: windows xp

Re: run php scrip file through http://localhost/xampp/htdocs

Postby Sharley » 22. December 2011 09:40

You're welcome. 8)

Good luck. :)
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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests