Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Okay, my bad. Sorry for not being an located in an English speaking country and that I never had any English courses.
I'm much better in French...
Yep, you could do that. If you really would want it.
Imagine something like Myspace who allow user based CSS inserted into the pages. It could be separated to an CSS file, to keep the pages semantically clean (and I'm not talking about myspace here  ).
That way, you could save the CSS in a db, and simply generate the css file on the fly when it's requested.
Never had to use it.
But, for exemple, it could be useful in a javascript file.
Don't you ever wished to have a DB connection available to fetch datas used in a .js file, without putting the whole javascript in your main page ?
You have 2 solutions for that:
First: enable the parsing of PHP tags into .js files ( not recommended)
second: Do an include() of the js file into the main php file. The include() makes an evaluation of the PHP tags in the included files, even if the file have not a .php extention.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 08-15-2007 at 10:55 AM..
|