404 Not Found, The requested URL /hello.php was not found on this server.
Posted by: Messageinabottle (---.bredband.comhem.se)
Date: July 29, 2012 12:48AM

I am new to this but want to join the process of programming, ecpecially building homepages for the moment, but who knkows where ill end up, this seems magic tho!
BUT! small problem tho my research wont help.

I made a test "thing" saving a doc in www file here C:\wamp\www
I typed from a youtube video
<?php

echo "<h1>Hello, Oliver</h1>";
?>

I saved it as hello.php

But when I go to localhost to find it and type in localhost/hello.php like instructed I get this:
404 Not Found
The requested URL /hello.php was not found on this server.

I seek your guideline for my problem, I feel for doing this magic maths!

Options: ReplyQuote
Re: 404 Not Found, The requested URL /hello.php was not found on this server.
Posted by: Messageinabottle (---.bredband.comhem.se)
Date: July 29, 2012 12:50AM

Testing this reply

Options: ReplyQuote
Re: 404 Not Found, The requested URL /hello.php was not found on this server.
Posted by: RiggsFolly (---.as13285.net)
Date: July 30, 2012 11:48AM

Oliver,

Create a folder under c:\wamp\www

For example c:\wamp\www\firstsite

Put your hello.php file in that folder ( this keeps your work seperate to the wamp code)

You can create as many folders under there as you like for different sites.

Then use this address in your browser

http://localhost/firstsite/hello.php



Even better change your filename from hello.php to index.php ( that is the default filename to run in a webserver "normally" )

then you can just use this address

http://localhost/firstsite


BIG NOTE::: DONT PUT index.php in the c:\wamp\www folder wamp has already got on in there tha you should NOT OVERWRITE!!!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.