enigma1 - 12:08 pm on Dec 8, 2010 (gmt 0)
Well if you want dynamically generate a css just set it up in the head section of the html like a regular php script. For example:
<link rel="stylesheet" type="text/css" href="style.php" />
When the browser access it it will be executed like a regular php file and you output the CSS. Setup the cache headers like HTTP_IF_MODIFIED_SINCE so the style script is cached (apart of the content type you already have).
The style.php can do whatever you want, access the database store information about the access in general whatever a regular php script does and you can pass parameters with the link.