Hi!
I have one script that sometimes gives Max execution times reached error. This is normal, not this a problem. The problem is that in this case I would write specific error message.
How do i do this?
views:
31answers:
2
A:
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")
You can also pass parameters to the shutdown function
Mark Baker
2010-07-01 08:29:05