Well it seems Im stumped. I have a main site which includes files in DIV tags to load as plugins. Now my problem is when I have a filed included in the file that I include to the MAIN PAGE. It will not be able to include the files that need to be included in the plugins. Instead of going to the root directory of the file it goes to the root directory of the MAIN PAGE File. Now I did tons of searching and I now use
$_SERVER['DOCUMENT_ROOT'].restoffilename
thats great and all BUT IT STILL DOES NOT WORK! %*&#@)%@ because it using the main pages ROOT still. because IM in the building stage of my plugins I DO NOT WANT TO have to load them into the main page for them to work ( I dont want to change the includes to real paths for the plugins). This would be a hassle now and a hassle later.
How can I get includes to work if they included in a file??
or how else can output everything in a file inside a DIV tag?