Reply to Re: [PHP] php/pear question

Your name:

Reply:


Posted by Richard Lynch on 04/29/05 03:49

On Thu, April 28, 2005 1:23 pm, Kelly Meeks said:
> I can run pear from the shell, install new modules (pager,
> html_quickform,...) but when ever I try using any pear code in a php
> script
> with the appropriate includes/require (require_once 'DB.php';) nothing in
> the php block of the script gets executed. No error is thrown, and there
> is
> nothing in any of the server log files to indicate what the problem might
> be.

The last time I tried to use PEAR, *ages* ago, I had a similar experience.

It turned out that PEAR DB.inc was loading and using the nifty PEAR error
handling package, which was turning off error_reporting, over-riding my
customer error_handler, and then completely *SWALLOWING* all error
messages.

Gee, thanks!
[That was sarcasm]

After days of tracing through torterous class files and a ton of PHP
source code, I kinda sorta found where it was allegedly loading in a
config file that allegedly would have let me set where I wanted error
messages to go.

After changing that failed, I never tried to use PEAR again.

I had already wasted more time fighting with it than it would have taken
to just write the code I wanted in the first place!

> I've looked into phplib, but it seems dated and I've read where it looks
> like there is or was plans to merge phplib into pear.

I think PEAR grew out of (in part, to some degree) phpLIB.

I don't think you want to use phplib at this point.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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