Page 1 of 1

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

PostPosted: 21. December 2011 10:49
by binny
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>

"

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

PostPosted: 21. December 2011 10:56
by Sharley
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

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

PostPosted: 22. December 2011 09:35
by binny
Thanks sharley. Thanks.

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

PostPosted: 22. December 2011 09:40
by Sharley
You're welcome. 8)

Good luck. :)