Rahul's Tech Blog

Growth Hacking, Just Hacking or No hacking !!!

March, 2011

Embed PHP Code in CSS files.

Have you been embedding CSS Styles into PHP files just for the sake of making the styles dynamic? Ever wished to add PHP codes in CSS files itself. Here is a simple trick which will do the magic. Create a .htaccess file in your project directory preferably inside the directory where CSS files are stored. […]