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

search for in the

constant> <connection_status
[edit] Last updated: Wed, 19 Jun 2013

view this page in

connection_timeout

(PHP 4 <= 4.0.4)

connection_timeoutIndique si le script a expiré

Description

int connection_timeout ( void )

Indique si le script a expiré.

Valeurs de retour

Retourne 1 si le script a expiré, 0 sinon.

Notes

Avertissement

Obsolète

Cette fonction est obsolète et n'existe plus depuis PHP 4.0.5.

Voir aussi



add a note add a note User Contributed Notes connection_timeout - [1 notes]
up
1
jon at dbgurus dot com dot au
6 years ago
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 | sitemap | contact | advertising | mirror sites