Home > Archive > PHP Pear > July 2007 > 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 |
pear include_path problem
|
|
|
| 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.
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
| |
| Jens Kleikamp 2007-07-20, 7:05 pm |
| Justin Patrin schrieb:
> On 7/20/07, Ye Xu <ye.xu@gmx.de> wrote:
>
> 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.
>
>
| |
|
| so that means, the script must be chmod to 755 or 777 ?
On 2007-07-20 19:58:00 +0200, jens@codes-concepts.com (Jens Kleikamp) said:
[color=darkred]
> And also make sure Spreadsheet/Excel/Writer.php can be accessed by the
> webserver user.
|
|
|
|
|