> ive just installed php on apache on win98. i wrote the test phpinfo.php file, ran
> it and it worked fine. after that i tried to run index.php from the same
> directory and from 'website' directory where i have other pages that i know run,
> although it only prints back the contents of the file as they are, and not as an
> actual php file. the following is the code of the index.php file:
> 
> <html>
> <head>
> <title>PHP Index</title>
> <body bgcolor="#FFFFFF">
> <?php
> echo "hello world";
> ?>
> </body>
> </html>
> 

Hello,
 The answer to your question is in your httpd.conf file:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.php default.html default.htm
</IfModule>

Compare the section to your own httpd.conf file.
I answered this a couple of times last week.

Best wishes,
 Chris

> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
H.R. Communications Corp.
http://www.dnswatch.com
http://www.1command.com


............................................
This email was sent using DNSWATCH WebMail.
   "Get an account today!"
http://www.dnswatch.com/dnswm112/



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to