arunpatal Posted November 28, 2012 Share Posted November 28, 2012 Hello, I just wanted to ask if i can add some php codes in .css file? Link to comment https://forums.phpfreaks.com/topic/271294-php-code-in-css-file/ Share on other sites More sharing options...
trq Posted November 28, 2012 Share Posted November 28, 2012 Of course. You just need to configure your server to parse a .css file as php, or serve .php files as the css content type. Link to comment https://forums.phpfreaks.com/topic/271294-php-code-in-css-file/#findComment-1395888 Share on other sites More sharing options...
arunpatal Posted November 28, 2012 Author Share Posted November 28, 2012 Of course. You just need to configure your server to parse a .css file as php, or serve .php files as the css content type. Thanks Link to comment https://forums.phpfreaks.com/topic/271294-php-code-in-css-file/#findComment-1395890 Share on other sites More sharing options...
RobertP Posted November 28, 2012 Share Posted November 28, 2012 Of course. You just need to configure your server to parse a .css file as php, or serve .php files as the css content type. i recommend you serve a php file with a header for css, as the other method will probably cause you more head headaches in the end Link to comment https://forums.phpfreaks.com/topic/271294-php-code-in-css-file/#findComment-1395985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.