Solved

Pear HTTP/Upload.php failure

Posted on 2010-09-09
3
643 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secureā€¦
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

751 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