Solved

Pear HTTP/Upload.php failure

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
The viewer will learn how to count occurrences of each item in an array.

623 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