use PHP to create an external dynamically generated CSS file.


/ Published in: PHP
Save to your folder(s)

One other thing to note, is that the php generated css file can make use of query parameters, for instance:

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

in your PHP file you can use the variable:

if ($_GET['type'] == 'alternate'){
// set some options etc. ....
}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.