PDA

View Full Version : need help bad


Vizionz
05-10-2007, 04:08 AM
<?
chdir('/full path/');
require_once('./global.php');
?>
<center>
</head><body><? echo $style['css']; ?><body bgcolor="alt2">

now if use this in the root directory of my forum it will work on a stand alone page grabbing the stylesheet. but if i call it with full path in a directory above the forum root it wont grab the style sheet since its below so unless i copy the clientscript folder over to every directory it wont work and then that defeats the purpose of what i am doing any help

Eikinskjaldi
05-10-2007, 05:55 AM
Is there a reason you are chdir'ing to the subdirectory and not the root directory of your forum?

i.e. why chdir(full path) and not chdir(path/to/forumhome)