You are here: Re: problem with 'include' and 'file_exists' function « PHP Programming Language « IT news, forums, messages
Re: problem with 'include' and 'file_exists' function

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация