Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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:58 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 Pear functions is not working

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.

 
Old July 30th, 2005, 06:48 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default



If working locally:
There may be error in maintaing PEAR packages hierarchy in PEAR installation.

Also try get_include_path(); this should point to PEAR directory.

If you're trying on remote server, you might've no permission, or PEAR is not installed properly or problem in path.

Try in 2nd or 3rd time; it'll work!

http://www.mediasworks.com/tutorial/


 
Old August 5th, 2005, 12: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

Thank you for the reply.
I have installed gd2 library in my widows server. Now the XML-RPC is using pear package and image functions are using gd2 library.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Worksheet Functions Stop Working Arron Edwards Excel VBA 1 May 13th, 2008 01:12 AM
PEAR::Auth and PEAR::Auth_HTTP Ceriwaen Beginning PHP 1 February 18th, 2005 04:36 PM
What is PEAR? anshul PHP How-To 1 August 9th, 2004 11:40 AM
PEAR philip.painter@hp.com PHP How-To 1 June 6th, 2003 09:24 AM





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