Mikejs, This is possible, just reference a php script to output your css instead of writing a .css file to the system.
<link rel="stylesheet" href="/pathtomyscript.php?css=1" />
//output of script...
header("Content-type: text/css");
//output the css
echo $result['css'];