Re: newbie question about include_path

From: Date: Wed, 26 Jul 2000 19:15:21 +0000
Subject: Re: newbie question about include_path
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-8379@lists.php.net to get a copy of this message
OK - heres where I am. Now my php.ini include path says; include_path='/usr/local/share/doc/apache.' (with the added '.') my program starts with /usr/local/share/doc/apache/freemed/index.php3 and I get this error; Warning: Failed opening 'global.var.inc' for inclusion (include_path='/usr/local/share/doc/apache.') in /usr/local/share/doc/apache/freemed/index.php3 on line 9 It still is trying to find gloabl.var.inc in /usr/local/share/doc/apache when it's really in /usr/local/share/doc/apache/freemed If I change include_path='/usr/local/share/doc/apache/freemed' then it works, but other programs in other directories do not. christopher@moewes.com wrote: > > You can add '.' to the include path. To add multiple include paths put > a ':' between entries. By adding '.' as the first entry it will always > look in the current directory for the include file then move onto the > other directoies listed. Also you can specifcy the full path for > includes (full from the actual system's root not just the web root) > > Hope this helps. > > On Wed, Jul 26, 2000 at 12:22:43PM -0400, David Banning wrote: > > I have to keep changing the include_path in php.ini to > > the directory I am working in. Is there a way around this? > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > > -- > Christopher R. Moewes-Bystrom > cmoewes@moewes.com > http://www.moewes.com > http://www.linuxnovice.org -- Writing about music is like dancing about architecture. -- Frank Zappa

« previous php.general (#8379) next »