Re: Using PHP with Style Sheets
| From: | John Nichel | Date: | Mon, 19 Jan 2004 07:30:56 +0000 |
| Subject: | Re: Using PHP with Style Sheets | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174995@lists.php.net to get a copy of this message | ||
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? Thanks.If you want PHP to parse your *.css files, you need to tell your webserver software to do so. In Apache.... AddType application/x-httpd-php .php .css -- By-Tor.com It's all about the Rush http://www.by-tor.com