Reply to PHP and Pear - Install Question

Your name:

Reply:


Posted by David on 09/08/05 22:08

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.

[Back to original 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

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