Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2136 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

CSS Revisions

Thread title: CSS Revisions
Closed Thread    
    Thread tools Search this thread Display Modes  
02-15-2007, 03:07 AM
#1
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old  CSS Revisions

I have seen numerous sites use:
Code:
http://report.reinvigorate.net/css/style.css?3
For a CSS style sheet. I was wondering if it would be hard to make something so it thinks it's a CSS file, but it's really just PHP getting MySQL data.

02-15-2007, 03:12 AM
#2
Garyrae is offline Garyrae
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,625
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae Send a message via Skype™ to Garyrae

  Old

EDIT: Nevermind, I don't think I understand the question properly. o.0

02-15-2007, 03:28 AM
#3
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old

Yea its pretty easy.. One Sec ill upload some code

phpcss.php
PHP Code:
<?php
header
('Content-type: text/css');

$color '0099CC';
?>

body {
    font-family: Arial, Helvetica, sans-serif;
    color:#1f1f1f;
    
}

.auth {
    font-size:9px;
    color:#<? echo $color ?>;
    }
And In You HTML

index.html
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; ch****t=iso-8859-1" />
<title>Using a PHP File For CSS</title>
<link rel="stylesheet" type="text/css" href="phpcss.php" />
</head>

<body>
The Style Is In PhpCss.php<br />
<a class="auth">Written By Alx</a>
</body>
</html>

02-15-2007, 09:02 AM
#4
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old

You can also add something into your .htaccess sheet to make css files act like PHP...

Code:
AddHandler application/x-httpd-php .css

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed