[PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
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? Thanks. -- PHP General

Re: [PHP] Using PHP with Style Sheets

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

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

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 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 -- BrianGnuPG - KeyID

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