Reply to Re: PHP4 -> PHP5: require does not check file directory anymore?

Your name:

Reply:


Posted by Jari Jokinen on 02/15/06 15:12

In comp.lang.php Markus Ernst <derernst@no#sp#amgmx.ch> wrote:

> In the PHP4 -> PHP5 migration chapter of the manual I did not find any
> notes on a change of the require/include behaviour, not checking the
> directory of the calling file anymore; nor did I find it googling.

Maybe your PHP5 configuration file doesn't set same include_path option
than PHP4? You can add current directory (.) to include_path with this:

set_include_path(get_include_path() . PATH_SEPARATOR . '.');

--
Jari Jokinen
jari.jokinen@iki.fi

[Back to original 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

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