ok so i am including a html file that has a css file within it. but when i include it, it breaks the relative css location. is there a way before i include the html file that i define the relative area.

example
include("admin/template");

html file
<link href="css/style.css" rel="stylesheet" type="text/css" />

the reason that i want to see if i can do it before is so that i dont have to edit the html file for it to be the correct relative. just upload it and go.

thanks in advance

Why can't you just define the css file like normal? And if your file's name is template, the include is looking for the css file in admin/css/

im just trying to make it so you upload it as is and then its ready to go. so if you go back to editing it you dont have to change all the css or javascript urls. specially if there are lot of files.

i would like the code to take care of it

you put your template files one by one...like

include "admin/template/sample.dwt";
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.