Solved

Pear HTTP/Upload.php failure

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Checking CSRF token within a function 36 74
showing loader for php/mysql/ajax live search 13 23
Cookie not unsetting 7 18
PHP Syntax Error 4 25
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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

813 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

14 Experts available now in Live!

Get 1:1 Help Now