Re: php/css and .htaccess

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

 



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

-- 
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