Unable to get php working in apache
Ryan Schmidt
ryandesign at macports.org
Thu Mar 24 14:48:08 PDT 2011
On Mar 24, 2011, at 11:37, sdrulea wrote:
> You're absolutely correct! I moved the <?php ..?> script into index.php and
> it works fine.
>
> I understand the performance cost associated with processing PHP in .html
> files. Nevertheless, if I wanted to enable PHP in .html files, what would I
> need to do?
The line that tells Apache to use mod_php for .php files is:
AddType application/x-httpd-php .php
If you want Apache to process .html files with mod_php too, you'd presumably add:
AddType application/x-httpd-php .html
More information about the macports-users
mailing list