Re: php/css and .htaccess

From: Date: Fri, 22 Sep 2006 23:39:53 +0000
Subject: Re: php/css and .htaccess
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242103@lists.php.net to get a copy of this message
On Wed, September 20, 2006 5:18 pm, 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? Add a header("Content-type: text/css") to the top of it, so that the web-server isn't LYING to Mozilla and telling it that you're sending it an HTML file? Only IE would be STOOPID and look at the URL and the file contents and decide to ignore the headers. text/css may not be right. Whatever. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#242103) next »