Ye Xu
2007-07-20 12:27:41 UTC
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 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
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 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
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php