Home > Archive > PHP Pear > July 2007 > Re: [PEAR] pear include_path problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] pear include_path problem
|
|
| Justin Patrin 2007-07-20, 7:05 pm |
| 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?
>
> I am really 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/sho...readid=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
>
>
--
Justin Patrin
| |
|
| YES, all PEAR related Library are all there.
On 2007-07-20 19:34:49 +0200, papercrane@gmail.com ("Justin Patrin") said:
>
> If you look in /usr/share/php do you see Spreadsheet/Excel/Writer.php?
|
|
|
|
|