Topic awaiting preservation: Dynamically change a css file (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: you tell me |
posted 05-13-2007 08:53
OK I wasn't sure where to post this but anyway.. I wanna build a simple php script that alters a css file i.e. the user can set a few constants which would be stored in a database and those constants would be used to create a css file that would be used throughout the website. |
Paranoid (IV) Inmate From: Norway |
posted 05-13-2007 12:55
Well, unless your CSS file is ridiculously big, let's say 50-100kb, and require some complex logic to retrieve the variables, I doubt you'll see any noticeable delay. A small dynamic site hardly take more than 0.1 second to load its data from a DB and build the markup, so that should be a fraction of that for just a few variables. |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 05-13-2007 12:59
A php-css file is no trouble at all - provided you have the right caching ( ie. you set correct 'last-modified' headers), no speeed issue at all. |