Re: pear include_path problem
| From: | Sascha Grossenbacher | Date: | Fri, 20 Jul 2007 19:01:29 +0000 |
| Subject: | Re: pear include_path problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27708@lists.php.net to get a copy of this message | ||
Hi
Ye Xu schrieb:
> 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.
>
Check your open_basedir settings. If it is enabled, disable it or add
:/usr/share/php to it.
The following line should give a open_basedir error, if it is the problem.
require_once '/usr/share/php/Spreadsheet/Excel/Writer.php';
Greetings, Sascha