Re: pear include_path problem

From: Date: Fri, 20 Jul 2007 17:58:00 +0000
Subject: Re: pear include_path problem
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27704@lists.php.net to get a copy of this message
Justin Patrin schrieb: > On 7/20/07, Ye Xu <ye.xu@gmx.de> wrote: >> Hello Everyone, >> >> Even though I had spend several hours of time to search on google and >> this mailing list, my problem still exists. so I'd decide to post a new >> request for help. >> >> I am using Package "Spreadsheet" to generate .xls files. running the >> script returns following errors. >> >> "Warning: require_once(Spreadsheet/Excel/Writer.php) >> [function.require-once]: failed to open stream: No such file or directory >> in >> /var/www/web/documentCreator/productlist.php on line 54 >> >> Fatal error: require_once() [function.require]: Failed opening required >> 'Spreadsheet/Excel/Writer.php' >> >> (include_path='.:/usr/share/php:/var/www/web/') in >> /var/www/web/documentCreator/productlist.php on line 54" >> >> I am sure that I had installed pear and Spreadsheet package in the >> "usr/share/php" directory,and checking the apache2 ini files, the >> include_path looks also fine. > > If you look in /usr/share/php do you see Spreadsheet/Excel/Writer.php? > And also make sure Spreadsheet/Excel/Writer.php can be accessed by the webserver user. >> >> I am really confused what caused the problem and how to correct it. >> so can somebody give me some hint how to deal with this problem. >> >> ps: according this link that I found on google >> http://www.phpbuilder.com/board/showthread.php?threadid=10246895 >> >> with one of the two methods mentioned here will kill the problem, but >> none >> of them seems to be helpful in my case. >> >> quote from 'tsinka' >> " >> there are a lot of posts regarding this issue (seems to be some kind of >> bug). >> Most people were able to get around that problem with one or both of >> the two solutions: >> >> 1) >> >> put the following directive on top of your php script: >> >> ini_set('include_path', ini_get('include_path')); >> >> >> 2) >> >> put a .htaccess file in your document_root which contains: >> >> php_value include_path .:/usr/local/lib/php >> " >> >> thx! >> >> Ye >> >> -- >> PEAR General Mailing List (http://pear.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > >

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