2010-07-01 87 views
5

我有一个脚本有时会给最大执行时间带来错误。这是正常的,不是这个问题。问题是,在这种情况下,我会写出特定的错误信息。
我该怎么做?最大执行时间错误处理

+1

你应该在你的acccept率工作,激励一些人来回答你。 – jigfox 2010-07-01 08:25:50

回答

4
function say_goodbye() { 
    if (connection_aborted()) { 
     // Perform some action if user has aborted the transaction 
    } elseif (connection_status() == CONNECTION_TIMEOUT) { 
     // perform some other action if the connection has timed out 
    } else { 
     // any normal completion actions 
    } 
} 

register_shutdown_function("say_goodbye") 

您还可以传递参数给关机功能