473,383 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

PHP and Pear - Install Question

I installed the Pear program and set the include path in php.ini to
point to the pear dir. I have a program which

<?
require_once("DB.php");

?>

This produces the error "Class 'PEAR_Error' not found in
c:\PHP\pear\PEAR\DB.php on line 868"

This is from defining an error class in the DB module that comes from
the PEAR.php module. Even though the DB.php has a require for the
PEAR.php, it appears that it is not being included .

I tried

<?
require_once("PEAR.php");
require_once("DB.php");

?>

but this does not appear to work wither.

I am lost if this is an issue with the Pear install, my system or PHP
setup, or just evil code!

I am running Win2k with Apache.

Also, when I do manually install PEAR.php, I sometimes get an runtime
error from Apache.
Sep 8 '05 #1
3 2183
On Thu, 08 Sep 2005 14:08:47 -0500, David <ma******@sbcglobal.net> wrote:
I installed the Pear program
What, precisely, did you do?
and set the include path in php.ini to
point to the pear dir. I have a program which

<?
require_once("DB.php");
?>

This produces the error "Class 'PEAR_Error' not found in
c:\PHP\pear\PEAR\DB.php on line 868"
PEAR::Error is part of the core/bundled PEAR modules which could imply you've
not installed PEAR properly.
This is from defining an error class in the DB module that comes from
the PEAR.php module. Even though the DB.php has a require for the
PEAR.php, it appears that it is not being included .

I tried

<?
require_once("PEAR.php");
require_once("DB.php");
?>

but this does not appear to work wither.

I am lost if this is an issue with the Pear install, my system or PHP
setup, or just evil code!

I am running Win2k with Apache.

Also, when I do manually install PEAR.php, I sometimes get an runtime
error from Apache.


What error? How did you install it manually? What version of PHP? More details
please.

Since you're on Windows, did you use go-pear.bat?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Sep 8 '05 #2
On Thu, 08 Sep 2005 14:08:47 -0500, David wrote:
Also, when I do manually install PEAR.php, I sometimes get an runtime
error from Apache.


On Winduhs, you have to install PEAR manually, there is no other way.
Cunning plans will not help you. You have to execute go-pear.bat and
answer few questions about the target directories, the modules that you
want installed, your credit card numbers and your SSN.

--
http://www.mgogala.com

Sep 9 '05 #3
> On Winduhs, you have to install PEAR manually, there is no other way.
Cunning plans will not help you. You have to execute go-pear.bat and
answer few questions about the target directories, the modules that you
want installed, your credit card numbers and your SSN.


For the most part, this is true.

FOr a (almost) fool-proof plan on installing PEAR (as well as Apache,
Perl and PHP) on a windows box see documents at...

http://web.torres.ws/walters_way/

There is a method to that madness these documents spell out.

It's worked for me across 8 PC over the past 5 years.

Works on:
- 98
- NT|NT Server
- 2k Pro|Server
- XP Home|Pro
- 2k3 Server

Hope this helps you

Walter

Sep 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
1
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it....
2
by: Alan Prescott | last post by:
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes)...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
1
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I...
2
by: jhalaseh | last post by:
Hello, Was wondering if anyone could help me out with a bit of wierd prob. I have pear installed in a UNIX box, with PHP 5.1.2. I'm trying to install some packages by running pear install...
4
by: awebguynow | last post by:
Re: only got "pear.old_bat" I had a previous post ".. Upgrade Methods ..." and so far I've gotten around most thorny issues, including patching php5.1.4 with php5apache2_2.dll so I can run it...
1
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.