On Mon, 2004-01-19 at 02:18, Freedomware wrote: > I just learned that you can even use PHP on style sheets. Can anyone > here tell me how to set it up? > > I found a page at http://www.webdeveloper.co.nz/forum/topic/50 that > apparently cites two different methods. The first is to put a php > heading at the top of a style sheet, then alter a document so that your > server will recognize the style sheet as a php page. > > But someone else said all you have to do is change the page's extension > from .css to .php. I tried that, but it didn't work for me. > > Are you aware of any good tutorials on using PHP with style sheets?
Just name you style sheet with a php extension. site.css.php and put a Content type header at the top of you style sheet. header("Content-type: text/css" ); Then call the style sheet in one of the usual methods, link rel or @import -- Brian GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys Key Server: pgp.mit.edu ====================================================================== gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC GnuPG: http://gnupg.org http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC Linux Registered User #339825 at http://counter.li.org
signature.asc
Description: This is a digitally signed message part