Re: Couple of beginner questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 5:39 PM +0000 1/9/09, Nathan Rixham wrote:
if it has the file extension .php then it will be passed through php and compiled; otherwise the php source code you insert will just show up in the html source.

Gary:

That is true, but with the following code in a .htaccess file you can force the interpreter to consider other files with other suffixes. For example:

# handler for phpsuexec..
<FilesMatch "\.(htm|html|css|tpl)$">
 SetHandler application/x-httpd-php
</FilesMatch>

This allows me to use php in css files and such.

Cheers,

tedd


PS: Nathan -- I know you know this, but this post was for the benefit of the OP.
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux