Re: embedding PHP within HTML documents
| From: | Steve | Date: | Fri, 16 May 2003 17:56:31 +0000 |
| Subject: | Re: embedding PHP within HTML documents | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147945@lists.php.net to get a copy of this message | ||
Unfortunately, I will have to either create a .htaccess file or edit the
httpd.conf file. I tried telling the customer to change extensions but he
has thousands of documents that have .html extensions with embedded php and
his excuse is that a number of these files are listed in search engines.
Since he does not want to be forthcoming. You are correct about the Xbit
Hack situation. However, I cannot change it in the current environment.
Is it impossible to parse PHP within HTML in this environment?
"Wendell Brown" <wbrown@arkie.net> wrote in message
news:200305161746.h4GHkvqc009383@arkie.net...
> On Fri, 16 May 2003 12:27:33 -0500, Steve wrote:
>
> >AddType application/x-httpd-php .php .htm .html .phtml
>
> It sounds like you have a similar line set up for CGI or you have
> X-Bit-Hack turned on and have the "Execute Bit" turned on on that file.
> By default a file with a .htm extension will not trigger the cgi
> interpreter.
>
> Of course one other options is to use a .php extension. ;)
>