Forums / Developer / Catching errors in a php script

Catching errors in a php script

Author Message

Nicolas R

Wednesday 11 March 2009 2:28:35 am

Hello,

I have a php script in an extension that queries and updates data in eZPublish.
I am currently working on it and I noticed that if the script fails, I have an eZPublish fatal error and the script ends abruptly.
How can I catch this error in order to properly end my script ?

Thank you.

Jean-Yves Zinsou

Monday 23 March 2009 6:01:04 am

Hi there,
i am not an php guru but have you try the try/catch features in php5 ?

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr