Configure php4 on apache over windows 2k

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
macaco_5
Forum Newbie
Posts: 1
Joined: Fri Dec 13, 2002 10:25 am

Configure php4 on apache over windows 2k

Post by macaco_5 »

Hi all!

The firts, i'm beginner.
I have installed php4 with apache, but i have one doubt:
- If i execute http//localhost/script.php, Apache execute the php code but if the extension file is .html it doesn't, Why??? What is the difference???

example:
script.php
<?php
phpinfo();
?>
sublevel4
Forum Commoner
Posts: 33
Joined: Wed May 29, 2002 2:14 pm
Contact:

Post by sublevel4 »

check your apache config file and see what extensions(.php, .htm, .html). I forget right off the top of my head what is it listed as. I had the same problem until i figured out that .html was missing in mine.
User avatar
Johnm
Forum Contributor
Posts: 344
Joined: Mon May 13, 2002 12:05 pm
Location: Michigan, USA
Contact:

Post by Johnm »

Look for this:

Code: Select all

AddType application/x-httpd-php .php .php3 .html


John M
Post Reply