Re: PHP/apach config question

From: Date: Tue, 22 Aug 2000 18:50:56 +0000
Subject: Re: PHP/apach config question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12997@lists.php.net to get a copy of this message
On Tue, 22 Aug 2000, Michael Packer wrote: > I've just setup PHP got it working but have a question about PHP/Apach > configuration... > > i've got the following lines in my Apache Web Server: > > <IfModule mod_php4.c> > AddType application/x-httpd-php4 .php .phtml .html > AddType application/x-httpd-php .php .phtml .html > </ifModule> I don't think there is an "application/x-httpd-php4" mime-type. There's just a "application/x-httpd-php" mime type, so delete the first "AddType" line. > > > > I also elsewhere in the config file have the following to allow server side > includes: > > Addtype text/html .shtml .html > AddHandler server-parsed .shtml .html > > > my <?phpinfo()?> works fine if the file is called test.php, test.phtml, but > it doesn't work if i call it test.html. Is there anyway to configure this > so > apache will parse .html files as PHP and server side includes? You could add the .html extension to the php mime-type, but I wouldn't recommend it. I don't understand the need to put PHP and SSI together in the same page. PHP can do everything SSI can. > > I realize this is more of an apache question but i figured there has to be a > lot > of other people out there that have seen the same thing. > > thanks! > pac > > >

« previous php.general (#12997) next »