Jump to content

parsing css files


tomdelonge

Recommended Posts

i never tried this with css, but in .htaccess:

 

AddType application/x-httpd-php .css

No need for that.

 

Just do

<?php header('Content-Type: text/css'); ?>
/* your styles here */

 

Then do

<link rel="stylesheet" type="text/css" href="stylesheet.php">

stylesheet.php will be parsed by PHP, which will return the CSS for your browser.

Link to comment
https://forums.phpfreaks.com/topic/123032-parsing-css-files/#findComment-635331
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.