不需要,请看手册
==============================
connection_timeout
(PHP 3 >= 3.0.7, PHP 4 <= 4.0.4)//你的php版本适用么?
connection_timeout -- Return TRUE if script timed out

解决方案 »

  1.   

    完蛋了完蛋了,PHP 4.3.10应该怎么办啊。。我需要处理超时。。
      

  2.   

    connection_status
    (PHP 3 >= 3.0.7, PHP 4, PHP 5)connection_status -- Returns connection status bitfield
    Description
    int connection_status ( void )
    Returns the connection status bitfield. See the Connection Handling description in the Features chapter for a complete explanation. -----------------------------------------章 40. 连接处理
    注: 以下内容对 PHP 3.0.7 及更高版本适用。 在 PHP 内部,系统维护着连接状态,其状态有三种可能的情况: 
    0 - NORMAL(正常)1 - ABORTED(异常退出)2 - TIMEOUT(超时)