Re: [fw-general] Maximum execution time and Zend Framework

2007-08-21 Thread Ahmed Shreef
Hi Dinh,

that's not related to ZF. in php.ini you can change the value of
max_execution_time to be whatever number of seconds you want. the default is
30 seconds.

also, you can use the built-in PHP function set_time_limit . if you
can't access php.ini
http://www.php.net/set_time_limit


regards,

On 8/21/07, Dinh <[EMAIL PROTECTED]> wrote:
>
>
> Maximum execution time is a common fatal error in PHP. I wonder if there
> is any way to catch the type of error and replace its message with more
> friendly and less sensitive one in Zend Framework. I feel that it is
> impossible at this time due to the limitation in PHP because the compiler
> halted after that. Does anybody have some workaround solutions to handle
> this error? It is really useful if PHP can throw an exception instead of a
> fatal error.
>
> Thanks
>
> Dinh




-- 
Ahmed Shreef
Web Developer
Alexandria, Egypt


[fw-general] Maximum execution time and Zend Framework

2007-08-20 Thread Dinh
Maximum execution time is a common fatal error in PHP. I wonder if there is
any way to catch the type of error and replace its message with more
friendly and less sensitive one in Zend Framework. I feel that it is
impossible at this time due to the limitation in PHP because the compiler
halted after that. Does anybody have some workaround solutions to handle
this error? It is really useful if PHP can throw an exception instead of a
fatal error.

Thanks

Dinh