Reply to Re: require_once issue

Your name:

Reply:


Posted by Andy Hassall on 09/14/05 01:57

On Tue, 13 Sep 2005 14:54:37 -0500, David <martindb@sbcglobal.net> wrote:

>I have code that brings in the Pear DB
>
>require_once 'DB.php';
>
>However, there is an include in the DB.php for the PEAR.php file, and
>the system does not appear to be able to locate that file. The
>PHP.ini has
>
>include_path = ".;c:\php\includes;c:\php\includes\Pear"
>
>PHP appears to use this dir. search path for the DB.php but not the
>internal Pear.php!
>
>I can force the include but changing it to a full path, but this is
>not the best option.
>
>Any ideas as to the root cause of this issue?

What error do you get?

Are you sure it's picking up DB.php from c:\php\includes\Pear and not another
path?

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[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

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