Re: php doesn't work in html files

From: Date: Sun, 11 Jan 2004 13:30:30 +0000
Subject: Re: php doesn't work in html files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174236@lists.php.net to get a copy of this message
On Sunday 11 January 2004 21:04, Nico Berg wrote: > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use the url http://localhost/index.html > > This index.html look's like this: [snip] > So the php part is not done at all. Is that right? I always believed php > should work in html? By default the webserver only treats files with the .php extension (and a few others, see your webserver config) as PHP files. If you want it to process .html files as PHP then look for the following line (or similar) in httpd.conf: AddType application/x-httpd-php .php4 .php3 .phtml .php .inc and add .html to the end of it, then restart Apache. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "I got everybody to pay up front...then I blew up their planet." "Now why didn't I think of that?" -- Post Bros. Comics */

« previous php.general (#174236) next »