Re: php/css and .htaccess

From: Date: Wed, 20 Sep 2006 22:24:11 +0000
Subject: Re: php/css and .htaccess
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241995@lists.php.net to get a copy of this message
tedd wrote:
Hi gang: I embedded php code inside css and changed my .htaccess to read -- <FilesMatch "\.(htm|html|css)$"> SetHandler application/x-httpd-php </FilesMatch> -- so that the css file would be processed and executed by php. The end result was that everything worked and did what I wanted. However, FireFox / Mozillia won't accept a css file if a .htaccess file reads as indicated above. Any ideas as to how to get FireFox to play nice? Thanks in advance for any replies. tedd
That shouldn't be expected. The SetHandler only applies to the Apache handler side, as browsers should not be able to read those files (.htaccess). So, are you 100% positive that PHP is in fact processing the file? -- Christopher Weldon, ZCE President & CEO Cerberus Interactive, Inc. cweldon@cerberusonline.com 979.739.5874

« previous php.general (#241995) next »