View Single Post
Old 02-20-2008, 03:27 PM   #20 (permalink)
Sam Granger
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

Quote:
Originally Posted by Haris View Post
Sam, you can directly link to PHP file.

HTML Code:
<link rel="stylesheet" href="style.php?v=1" media="screen" type="text/css" />
The header function on the PHP file makes sure that content is parsed as text/css.

PHP Code:
header ('Content-type: text/css'); // Display page as css file! 
That does it all. You don't need mod_rewrite unless you want to make it all pretty.
I know, I just wnated to make it pretty for him, since in his example, he mentioned a ".css" file too, basically the php file but made pretty
Sam Granger is offline  
Reply With Quote