Re: Include problems

From: Date: Sat, 03 May 2003 19:09:33 +0000
Subject: Re: Include problems
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-146298@lists.php.net to get a copy of this message
I understand what's being said that . is the current dir, but shouldn't PHP look in the dir returned by dirname(__FILE__) before it looks in the include path??? Thanks! Shawn "Shawn McKenzie" <nospam@mckenzies.net> wrote in message news:20030503010630.67081.qmail@pb1.pair.com... > What??? > > "Dvdmandt" <dvdmandt@telia.com> wrote in message > news:20030503000124.31615.qmail@pb1.pair.com... > > Include path doesn't even include '.' ? That most likely causes it... > > "Shawn McKenzie" <nospam@mckenzies.net> skrev i meddelandet > > news:20030502214022.57571.qmail@pb1.pair.com... > > > Is there some PHP/Apache configuration setting or oddity with Solaris > that > > > would cause this??? > > > > > > I have a script that works great for me and many others that gives the > > > following errors for one particular person: > > > > > > Warning: Failed opening '/apps/myscript/script.cfg' for inclusion > > > (include_path='') in /apps/myscript/myscript.php on line 2 > > > Warning: Failed opening '/apps/myscript/script.php' for inclusion > > > (include_path='') in /apps/myscript/myscript.php on line 3 > > > > > > /home/me/public_html/apps/myscript/myscript.php > > > <?php > > > include(dirname(__FILE__)."/script.cfg"); > > > include(dirname(__FILE__)."/script.php"); > > > > > > some other working script... > > > ?> > > > > > > The script.cfg and script.php reside in the same dir as myscript.php. > The > > > person has the following server stuff: > > > - SunOS backup 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-250 > > > - Apache/1.3.26 > > > - PHP 4.2.3 > > > > > > TIA > > > -Sawn > > > > > > > > > > > >

« previous php.general (#146298) next »