2010-06-28 44 views

回答

0

为什么红宝石标签? :)

Php是一种服务器端语言,如果您需要执行客户端操作,则需要使用客户端语言。 Javascript或VBScript等等。

1

查看Connection Handling!

http://www.php.net/manual/en/features.connection-handling.php

if(connection_status() == 1 || connection_status == 2) // Timeout or Abort 
{ 
    //Skip the DB shizzle 
}else 
{ 
    $DB->inserter->user('john','doe','password'); 
} 
+0

...有趣。感谢您的参考。但是请注意,只有在启用了“ignore_user_abort”后才会发挥作用,并且仅用于轮询状态,而不是对其进行更改。 – grossvogel 2010-08-15 00:44:29

+0

如果用户已断开连接,您为什么要更改状态,如果用户不再连接,则无需强制内容! – RobertPitt 2010-08-16 14:56:31