Page 1 of 1

Pear

Posted: Sun Jan 31, 2010 10:40 am
by mariolopes
I'm new in PHP and i have a lot of problems For example I want to use the
Spreadsheet_Excel_Writer http://pear.php.net/package/Spreadsheet ... r/download but i don't know hou to install it. My SO is windows and i installed the package in my PEAR folder. I installed the dependences OLE too but i cannot get rid of this error:
Warning: require_once(OLE/PPS.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\xampp\php\PEAR\Spreadsheet\Excel\Writer\OLE\PPS\Root.php on line 23

Fatal error: require_once() [function.require]: Failed opening required 'OLE/PPS.php' (include_path='.;C:\xampp\xampp\php\PEAR') in C:\xampp\xampp\php\PEAR\Spreadsheet\Excel\Writer\OLE\PPS\Root.php on line 23
There is one simple way for installing this stuff?

Re: Pear

Posted: Sun Jan 31, 2010 10:57 am
by mariolopes
I Thnik I'm on the right track
http://pear.php.net/manual/en/installation.shared.php
The configuration of pear in a remove server is hard to do?
Thank you

Re: Pear

Posted: Sun Jan 31, 2010 11:23 am
by AbraCadaver
You want to add the PEAR directory to your include path. Either in php.ini or you can use set_include_path() in your script.

Re: Pear

Posted: Sun Jan 31, 2010 11:29 am
by mariolopes
Thank you Abracadaver
But look at my question: I downloaded one file from pear and I Have to install it in my local system. My question is : It's hard to install it in my remote system?

Re: Pear

Posted: Sun Jan 31, 2010 11:33 am
by AbraCadaver
mariolopes wrote:Thank you Abracadaver
But look at my question: I downloaded one file from pear and I Have to install it in my local system. My question is : It's hard to install it in my remote system?
You should be able to just FTP the PEAR directory to your remote system and set the inlude path correctly, or depending upon the host they may have PEAR installed somewhere.