Solved

Pear HTTP/Upload.php failure

Posted on 2010-09-09
3
626 Views
Last Modified: 2012-06-27
I have some legacy code, written when I was using another server, that calls PEAR using require 'HTTP/Upload.php';

Now, when I am running it for the first time on a new server, I am getting this error:

Fatal error: require() [function.require]: Failed opening required 'HTTP/Upload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in in /home/username/public_html/Trainers/Files

I used WHM and C-Panel to try to find that module. I installed HTTP_Upload 0.9.1  but I am still getting the error.

Any ideas as to what I need to do?
0
Comment
Question by:birwin
3 Comments
 
LVL 2

Assisted Solution

by:Gatherer_Hade
Gatherer_Hade earned 100 total points
ID: 33643589
You should find out where the pear library is on your new server and make sure that directory appears in the include_path
0
 
LVL 3

Accepted Solution

by:
SuchetaL earned 400 total points
ID: 33643734
First check if your pear is installed correctly -
Incase you have access to command prompt just give -
$ pear
A list of commands will show up - if pear is installed correctly.
To check where PEAR installs .php files
$ pear config-get php_dir
 
Let me know if that helps
Sucheta
 
0
 
LVL 6

Author Closing Comment

by:birwin
ID: 33643899
Thanks Guys:
I finally found the name of the module (HTTP_Upload-0.9.1) and ran
pear install HTTP_Upload-0.9.1 from the command line and it downloaded.

Now my program works well.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now