[OT] Configure web server to parse php in .html files
Peter Haworth
pete at lcsql.com
Wed Dec 23 13:03:32 EST 2015
I've just finished my first php script that needs to be embedded in a file
with a .html extension. The php script is in a file referenced with a php
require command in the .html file.
The script does not run when the web page is loaded unless I change the
file extension to .php.
I believe there are directives that can be put into my .htaccess file to
should cause files with a .html extension to be parsed for php, I've tried
the following directives I found on the web and none of them work:
AddHandler x-httpd-php .html .htm
AddHandler php-script .php .html .htm
AddHandler php5-script .php .html .htm
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
The last two of the above caused any url for a page on my website to start
a download (using Chrome).
Anyone have the correct directive?
Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
More information about the use-livecode
mailing list