02-20-2008, 03:27 PM
|
#20 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Posts: 126
Thanks: 4
|
Quote:
Originally Posted by Haris
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 
|
|
|
|