Problem with pear functions

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

vinodkalpaka
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Jun 01, 2005 9:38 pm

Problem with pear functions

Postby vinodkalpaka » Sat Jul 30, 2005 1:01 am

Hi,

I am new to php program. I have a doubt about pear packages in PHP.
I have downloaded the pear packages through the command prompt line 'php go-pear.php' and installed it.
I could work with some examples for XML-RPC and give the correct output.
But when I try to work with an image example it give me the following error.

Warning: main(Image/Canvas.php): failed to open stream: No such file or directory in E:\ImageTest ,Fatal error: main(): Failed opening required 'Image/Canvas.php' .

Why did this happened? In the pear package list I could find zip files like DB-1.7.6,Net_Socket-1.0.6,XML_RPC-1.3.3,PHPUnit-1.2.3,Mail-1.1.6, Mail-1.1.6 and XML_Parser-1.2.6 etc.. But I could not find any files related to Image. Should I install any GD library for image functions in PHP other than pear package.

Please help me.
Thanking in advance

From,
Vinod A.

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Sat Jul 30, 2005 3:52 am

yeah mean you showd do it.

first install pear
second write inclusion part in php.ini

enjoy!

rakeshyadav
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Feb 15, 2011 10:39 pm

Problem with pear functions

Postby rakeshyadav » Tue Feb 15, 2011 10:44 pm

Hi all,


I am using PEAR classes to export my reports to excel i have some problem with open office wile exporting bitmap images.


i keep my PEAR files in /app/vendors/Pear

and my view file to export image to excel is

<?php

$workbook = new Spreadsheet_Excel_Writer();

$workbook->send('Search_Export.xls');

$worksheet=&$workbook->addWorksheet('Export');

$worksheet->setRow(0,50);

$worksheet->setColumn(0,1,50);

$worksheet->insertBitmap ( 0 , 5, '/tmp/shoprite1.bmp',0, 0, 1.25, 1);

$workbook->close();

exit();

?>

The code i mention above is good while working with MS Office (i am able to view the image). but problem with Open office i am not able to view image it is showing blank cell. Here i am using 24bit bitmap image (as per PEAR Instructions).

Any suggestions thank full.

Thanks &Regards

Rakesh


Return to “PEAR and PECL”

Who is online

Users browsing this forum: No registered users and 1 guest