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 +86 on 11/25/06 08:17

"Gordon Burditt 写道:
"
thanks for your answer.
>
> There are plenty of situations where this will happen. If a file
> name begins with ./, it will be looked up with include_path relative
> only to the current working directory, not the current script.
>
> Are you SURE you know what the current working directory is when
> the script is started?

The dicrecory is named 'test'.There's no file name like './',All files
in it ara 'info.php' and 'inc.php', if the current working directory is
'test' when i browse 'info.php'?
In this case if the two way to include is different?


> include() uses include_path to search for files.
> file_exists() doesn't.

I never set include_path before using win2003 and the win2000 server
run well.
>
> >my environment is win2003+iis+php5
> >
> >how to fix it ?
>
> The fix may be to correct the "right" value. Don't think that!

I think you can tell me how to resolve this problem..thanks :)

 

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

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