Re: php/css and .htaccess

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

 



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@xxxxxxxxxxxxxxxxxx
979.739.5874

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