Re: running php with .html files?

From: Date: Sun, 28 Jul 2002 15:19:26 +0000
Subject: Re: running php with .html files?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110057@lists.php.net to get a copy of this message
That did the trick. Thanks. Henry "Michael Sims" <mhsims@midsouth.rr.com> wrote in message news:e3m7kuo9nu1lol85tc2pr1j6epqbf1htef@4ax.com... On Sun, 28 Jul 2002 08:18:40 +0100, you wrote: >Hi All, [...] >I have a php script that I wish to execute but I want to put it in >index.html (not index.php) > >I know there is a solution involving configuration files in either the >directory wher the file is held or specifically for the server. >(Unfortunately I don't have access to the conf files for the server because >I'm currently using a shared serever from an ISP). [...] You didn't say what web server you are using, so I will assume it's Apache. If your server is configured to allow .htaccess files to override global settings, you should be able to create one in your directory and add: AddType application/x-httpd-php .html

« previous php.general (#110057) next »