For Programmers: Free Programming Magazines  


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
Sascha Grossenbacher

2007-07-20, 7:05 pm

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
Ye Xu

2007-07-20, 10:02 pm

On 2007-07-20 21:01:29 +0200, saschagros@bluewin.ch (Sascha
Grossenbacher) said:

> Hi
>
> 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




to Sascha,

The open_basedir setting on the server as I remembered is not enabled,
but I will try to enable it, see if it works.



On 2007-07-20 20:29:55 +0200, demon.gene@gmail.com ("Chuck Burgess") said:

>
> On 7/20/07, Ye Xu <ye.xu@gmx.de> wrote:
>
> "755" should allow any/all users to read and execute the file, which I would
> think should be sufficient. I wouldn't expect the webserver user to need
> write access, which is the only extra thing "777" gives compared to "755".



to Chuck

I will try to change the permission on the script, and give ya all
feedback on next monday.

thx ya all again for this great and kindness help.

Ye.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com