RE: [PEAR] PEAR inclusion problem

From: Date: Tue, 19 Jun 2007 12:14:55 +0000
Subject: RE: [PEAR] PEAR inclusion problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27498@lists.php.net to get a copy of this message
What about your include path? Should it be C:\AppServ\php5\PEAR instead of C:\AppServ\php5\PEAR\PEAR? Perhaps adding the following line at the top of your file and see if it helps: ini_set( 'include_path', ini_get( 'include_path' ) . PATH_SEPARATOR . " C:\\AppServ\\php5\\PEAR " ); MS -----Original Message----- From: izgordu@uzem.itu.edu.tr [mailto:izgordu@uzem.itu.edu.tr] Sent: Tuesday, June 19, 2007 2:14 PM To: pear-general@lists.php.net Subject: Re: [PEAR] PEAR inclusion problem Weiske, Thank you for your correction but i am afraid i have one more mistake too. My error is now: Warning: include(Science/Chemistry.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\deneme.php on line 3 Warning: include() [function.include]: Failed opening 'Science/Chemistry.php' for inclusion (include_path='.;C:\AppServ\php5\PEAR\PEAR') in C:\AppServ\www\deneme.php on line 3 Quoting Christian Weiske <cweiske@cweiske.de>: > IzGordu, > > > <?php > > include 'Science_Chemistry.php'; > > ?> > You need to replace underscores with slashes when including the files: > > > include 'Science/Chemistry.php'; > > -- > Mit freundlichen Grüßen/Regards, > Christian Weiske > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#27498) next »