Re: running php with .html files?
| From: | Michael Sims | Date: | Sun, 28 Jul 2002 11:43:28 +0000 |
| Subject: | Re: running php with .html files? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110049@lists.php.net to get a copy of this message | ||
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