473,499 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PEAR::Error ? Or else ?

Hello,

Has someone here used the PEAR error handling mechanism, and how useful
did he/her found it ?

I'm a bit newbie with PHP (not with programming...) and currently
working on a small OO framework, I find the lack of an exception
mechanism a bit disturbing, so I wonder how to implement a good error
handling. So any sound advice is welcome !-)

TIA
Bruno

Jul 16 '05 #1
2 3818
I've found it to be very useful along with the PEAR logging module.

Check this article out: http://www.zend.com/zend/tut/tutorial-eckhouse.php

- Justin

"Bruno Desthuilliers" <bd***********@removeme.free.fr> wrote in message
news:3f*********************@news.free.fr...
Hello,

Has someone here used the PEAR error handling mechanism, and how useful
did he/her found it ?

I'm a bit newbie with PHP (not with programming...) and currently
working on a small OO framework, I find the lack of an exception
mechanism a bit disturbing, so I wonder how to implement a good error
handling. So any sound advice is welcome !-)

TIA
Bruno

Jul 16 '05 #2
Justin wrote:
"Bruno Desthuilliers" <bd***********@removeme.free.fr> wrote in message
news:3f*********************@news.free.fr...
Hello,

Has someone here used the PEAR error handling mechanism, and how useful
did he/her found it ?

I'm a bit newbie with PHP (not with programming...) and currently
working on a small OO framework, I find the lack of an exception
mechanism a bit disturbing, so I wonder how to implement a good error
handling. So any sound advice is welcome !-)

TIA
I've found it to be very useful along with the PEAR logging module.

Check this article out:
http://www.zend.com/zend/tut/tutorial-eckhouse.php


Lol ! It's that article that made me post this question !-)
Good article BTW, but I wonder if PEAR error handling is not a bit
overcomplicated (sorry, I'm used to Python's exceptions...). Hence my
post...

But well, I guess that whatever I'd make on my own would probably end up
at least equally complex.

Bruno

Jul 16 '05 #3

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

Similar topics

3
2186
by: David | last post by:
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'...
0
1895
by: Samuel Zallocco | last post by:
Hi all, I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service: The Server Code running on WinXP + PHP5 + Apache 2.x:...
0
2029
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...
0
1156
by: phy1729 | last post by:
When I run any pear command in the shell it returns: Warning: main(PEAR/Config.php): failed to open stream: No such file or directory in pearcmd.php on line 43 Fatal error: main(): Failed...
4
3658
by: inetquestion | last post by:
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. ...
5
4502
by: Dan Fulbright | last post by:
I'm trying to install PHP 5.2.2 on Windows, but I keep getting errors when running go-pear.bat: mmap cache can't open phar://go-pear.phar/index.php mmap cache can't open...
2
2916
by: wannabe | last post by:
This is being installed on WindowsXP home edition. I am a complete novice at working with php and have just installed apache2_2, php5, mySQL5.0 and phpMyAdmin 2.10.1. After installing all 4...
3
6405
by: Rob Wilkerson | last post by:
Hey all - I'm bumping into an issue with my installation of the MDB2 package that I'm hoping someone else has seen. I'm trying to execute a query, but get an "unknown error" exception that I...
1
1523
by: slowpoke115 | last post by:
I have a simple login page with 2 fields (email and password), these details are then sent to another page which processes the inputs and sends them off to a PEAR server and awaits a response, it...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.