note 82527 added to function.file-get-contents

From: Date: Tue, 15 Apr 2008 09:38:31 +0000
Subject: note 82527 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-138325@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://google.com/", 0, $ctx); ?> (see also http://overooped.com/post/31812358 ) ---- Server IP: 217.160.72.57 Probable Submitter: 194.47.156.66 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/82527 Del: integrated -- https://master.php.net/note/delete/82527/integrated Del: useless -- https://master.php.net/note/delete/82527/useless Del: bad code -- https://master.php.net/note/delete/82527/bad+code Del: spam -- https://master.php.net/note/delete/82527/spam Del: non-english -- https://master.php.net/note/delete/82527/non-english Del: in docs -- https://master.php.net/note/delete/82527/in+docs Del: other reasons-- https://master.php.net/note/delete/82527 Reject -- https://master.php.net/note/reject/82527 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138325) next »