You are here: Re: PHP and Pear - Install Question « PHP Programming Language « IT news, forums, messages
Re: PHP and Pear - Install Question

Posted by Andy Hassall on 09/08/05 22:54

On Thu, 08 Sep 2005 14:08:47 -0500, David <martindb@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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация