Jump to content

Saving to the web root to confirm PHP installation


Recommended Posts

I just installed PHP.  To confirm it's been installed I created the following test file as index.php:

 


<html>
<head>
<title>My First PHP Page from my Local Server</title>
</head>
<body>
<?php print "<h1>Hello World</h1>"?>
</body>
</html>

 

I then saved the file to the root.  But,  when I try to display the web page, http://localhost/index.php I get the error, "404 - File Not Found".  I saved it to "C:\ ".  That is the "root", right?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.