Solved

Pear HTTP/Upload.php failure

Posted on 2010-09-09
3
639 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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.

713 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