I have a css file...
below
body {
background-attachment:fixed;
background-image:url(/Templates/Tech/images/bg.gif);
background-color:#C0C0C0;
color:#000000;
font-family:Tahoma, Arial, serif;
margin: 5px;
}
there is the chunk...
notice, the /Templates/Tech/images/bg.gif
this works if the script thats running it is located in the root folder, however it does NOT work if the script running it is in an upper directory, how can I fix this using php, or is there a way to fix this? I need the url specified in the database to print out in this css file, it would be fine if the code was located IN the script, but its remotely located in another file known as style.css and is included through the headers, now, obvious css wont execute php, so, what do I do? I need to make
/Templates/Tech/images/bg.gif
to..
$GLOBALS['base_url']."/Templates/Tech/images/bg.gif or something of that nature...
P.S.
Don't suggest moving the css file into the main file, because this is for my CMS with interchanging themes, so that wouldn't work out to well..