how to parse html as php in linux?
any advices/docs/books/links suggestions for a pc php/interbase guy tranferring to linux php/interbase, specific suncobalt?
Parse PHP in an HTML document on the fly?
<? print eval(implode("\n", file('my html file.htm'))); ?>
Pretty easy. Or include it. Require it.
Rephrase your request. I may have misunderstood.
i mean if it is .html, i want the server still run it as it is a .php.
thanks
i think its in the apache/php .ini somewhere.. i forget where exactly- but browse, there should be accepted extensions or some shit
You need to find a file called httpd.conf (on unix is something like etc/httpd/conf/httpd.conf)
find the line that says:
AddType application/x-httpd-php .php
and add the line:
AddType application/x-httpd-php .html
(or anyother extension you want)
That should do it.
-D
just name the .html file as .phtml 🙂 -=Levi=-