2010-07-01 84 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") 

您還可以傳遞參數給關機功能