Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default.php page error

Status
Not open for further replies.

kefi2927

IS-IT--Management
Apr 3, 2003
40
GB
Hi

I'm a newbie to PHP. I've installed PHP on my Win2K PC.

I created a simple page:
Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

I have saved this in my folder inside another folder phptest.

If I save the file as hello.php the pathway for the file works in my web browser:
If I save it as default.php or index.php and the pathway becomes: the error I receive is:

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.


Can anyone help me with this?

Cheers

Kefi2927
 
You need to modify your webserver config to recognize the file.

In apache it would look like this:

Code:
DirectoryIndex index.html index.htm index.html.var index.cgi index.php
 
How would I modify my webserver on Win2K to recognize the file?

Cheers
 
Thanks for all your help.

I've finally got it working.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top