The PHP parsing would take place before the file is sent to the browser. The
CSS goes into effect when it hits the browser, on the client side, so it
wouldn't matter. All the client cares is that there was a CSS file sent, it
doesn't care if it was text or created by PHP or whatever.
That's how I interpret it at least... Does the CSS file _HAVE_ to end in
.css? Or does it just matter how you link
----- Original Message -----
From: "Timothy J. Luoma" <[EMAIL PROTECTED]>
To: "Andrew Brampton" <[EMAIL PROTECTED]>
Cc: "William S." <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 5:05 PM
Subject: [PHP] Re: Can a php script be placed within a stylesheet?
> On Mon, 10 Jun 2002, Andrew Brampton wrote:
> > Yes you can place one in a style sheet you just need to tell apache (or
> > whatever) that .css should be parsed by PHP, this can be done via a
> > .htaccess or something similar... Here is a example in a .htaccess file:
> > AddType application/x-httpd-php .css
> But wouldn't that prevent it from being parsed as a CSS file?
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php