downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

constant> <connection_status
[edit] Last updated: Fri, 25 May 2012

view this page in

connection_timeout

(PHP 4 <= 4.0.4)

connection_timeout检查脚本是否已超时

说明

int connection_timeout ( void )

检查脚本是否已超时。

返回值

如果脚本已超时返回 1,否则返回 0。

注释

Warning

已废弃

该函数已被废弃,从PHP4.0.5起不再存在。

参见



add a note add a note User Contributed Notes connection_timeout
jon at dbgurus dot com dot au 24-Jan-2007 02:30
In order to prevent my script timing out (I was processing images which was taking some time) I added this into my loop:

set_time_limit(25);

This resets the time limit - in this example giving it another 25 seconds to complete the task.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites