Re: Couple of beginner questions

From: Date: Sat, 10 Jan 2009 13:56:14 +0000
Subject: Re: Couple of beginner questions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-285944@lists.php.net to get a copy of this message
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

« previous php.general (#285944) next »