Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
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

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Richard Davey
Hello Freedomware, Monday, January 19, 2004, 7:18:10 AM, you wrote: F I just learned that you can even use PHP on style sheets. Can anyone F here tell me how to set it up? F Are you aware of any good tutorials on using PHP with style sheets? Sorry but you haven't really stumbled onto a pot of

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
Sorry but you haven't really stumbled onto a pot of gold here or anything. Hmmm... it sounds like using PHP with style sheets isn't a recommended practice. John Nichel wrote: If you want PHP to parse your *.css files, you need to tell your webserver software to do so. In Apache AddType

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Dagfinn Reiersøl
Freedomware wrote: Sorry but you haven't really stumbled onto a pot of gold here or anything. Hmmm... it sounds like using PHP with style sheets isn't a recommended practice. I wouldn't do it unless I had a good reason to do it. The reason that's cited on the page you referred to is to have

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Justin French
On Monday, January 19, 2004, at 06:18 PM, Freedomware wrote: I just learned that you can even use PHP on style sheets. Can anyone here tell me how to set it up? Add this to your .htaccess file: Files ~ \.css$ ForceType application/x-httpd-php /Files Add this to the top of your CSS file:

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Brian V Bonini
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

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at the top: ? header(Content-Type: text/css); ? For the original style sheet, I

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread John Nichel
Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at the top: ? header(Content-Type: text/css); ? I would think

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 11:08:29AM -0600, John Nichel wrote: Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Justin French
On Tuesday, January 20, 2004, at 04:08 AM, John Nichel wrote: Freedomware wrote: OK, it looks like there are at least three ways to do this. I now have an original style sheet with a .css extension and copies with .php and .css.php extensions. All three style sheets have the following code at