[thelist] Conditionals in CSS - php? [solved]

Tom Dell'Aringa pixelmech at yahoo.com
Fri Oct 1 06:35:04 CDT 2004


--- Maximillian Schwanekamp <lists at neptunewebworks.com> wrote:

> A nice advantage to using php for stylesheets is that you can also set 
> the Expires header on a per-request basis.  Might be handy for what 
> you're doing.  Anyway, here's an example of what I use at the top of php 
> css files:
> <?php
> header("Content-Type: text/css");
> header("Expires: ".gmdate("D, d M Y H:i:s", (time()+600)) . " GMT"); // 
> Expires in 10 minutes
> ?>
> HTH!

Thanks Max - works great! And the expires is the perfect touch for what I want! :)

Tom

=====
Get Firefox! | http://www.pixelmech.com/


More information about the thelist mailing list