note 82527 modified in function.file-get-contents by nlopess

From: Date: Sun, 20 Apr 2008 11:42:20 +0000
Subject: note 82527 modified in function.file-get-contents by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138569@lists.php.net to get a copy of this message
Setting the timeout properly without messing with ini values: <?php $ctx = stream_context_create(array( 'http' => array( 'timeout' => 1 ) ) ); file_get_contents("http://example.com/", 0, $ctx); ?> --was-- Setting the timeout properly without messing with ini values: <?php $ctx = stream_context_create(array( 'http' => array( 'timeout' => 1 ) ) ); file_get_contents("http://google.com/", 0, $ctx); ?> (see also http://overooped.com/post/31812358 ) http://php.net/manual/en/function.file-get-contents.php

« previous php.notes (#138569) next »