Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Moderated Pro PHP
|
Moderated Pro PHP This is a moderated forum for discussing advanced, professional level issues with PHP. Your posts will not appear until a moderator approves them. Posts that are not the right level for this forum will be responded to and you'll be asked to post them in the [url="http://p2p.wrox.com/sql-server-2000-20/9"]Beginning PHP[/url] forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Moderated Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2005, 04:56 AM
Authorized User
 
Join Date: Jul 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vinodkalpaka Send a message via Yahoo to vinodkalpaka
Default problem with pear package

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,

 
Old December 19th, 2005, 04:03 AM
Authorized User
 
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As far as I know, we need to have GD extension installed and enabled to
work with image files.

 
Old December 28th, 2005, 09:40 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Sounds like a dependency issue. Did you install it as

# pear install XML_RPC

If you installed it this way the package will tell you what those are and try to resolve them for you. The one you're missing is the Image_Canvas package, but there may be others.

http://pear.php.net/package/Image_Canvas

As far as the GD library, installing PEAR packages from the command line will also tell you if there are any extensions that are required and will refuse to install if one is missing that is needed.

HTH!

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design





Similar Threads
Thread Thread Starter Forum Replies Last Post
Package Body Problem mindScape Oracle 0 March 21st, 2007 12:43 PM
Package problem dglnz JSP Basics 9 April 11th, 2005 03:35 AM
Package Deployment Problem bveerendrakumar Pro VB 6 8 March 16th, 2005 05:05 AM
PEAR::Auth and PEAR::Auth_HTTP Ceriwaen Beginning PHP 1 February 18th, 2005 04:36 PM
PEAR::DB Using Problem ruhin Beginning PHP 5 June 4th, 2004 12:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.