|
Posted by alexandr.kosarev@gmail.com on 11/26/06 08:21
+86 wrote:
> i encountered this problem:
> "include('inc.php')" will work problely
> but "include('./inc.php') doesn't work ..
> both file_exists('inc.php') or file_exists('./inc.php') didn't return
> the right value.this always show "file doesn't exists'
>
> my environment is win2003+iis+php5
>
> how to fix it ?
>
> sorry to my English
>
> thanks to you.
>
> :)
Can you post output of this code:
$d = dir("./");
echo "Path: " . $d->path . "\n";
while (false !== ($entry = $d->read())) {
echo $entry."\n";
}
$d->close();
It will show what you have in "./". Add it before include.
Navigation:
[Reply to this message]
|