note 101113 added to function.file-get-contents

From: Date: Fri, 26 Nov 2010 23:18:16 +0000
Subject: note 101113 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-174389@lists.php.net to get a copy of this message
Recently I experienced unexpected behaviour (for me) of file_get_contents('https://......') Script gets images and file_get_contents('https://......') is in loop operator. After several iterations Apache Server FastCGI timed out with Internal Server Error in ~30 seconds even if max_execution_time was set to 0. With fopen() fread() pair result was the same. In different environment Apache mod_php the same script worked without problems. I solved this changing https requests to http ---- Server IP: 89.190.194.18 Probable Submitter: 77.70.90.221 ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- https://master.php.net/note/edit/101113 Del: integrated -- https://master.php.net/note/delete/101113/integrated Del: useless -- https://master.php.net/note/delete/101113/useless Del: bad code -- https://master.php.net/note/delete/101113/bad+code Del: spam -- https://master.php.net/note/delete/101113/spam Del: non-english -- https://master.php.net/note/delete/101113/non-english Del: in docs -- https://master.php.net/note/delete/101113/in+docs Del: other reasons-- https://master.php.net/note/delete/101113 Reject -- https://master.php.net/note/reject/101113 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174389) next »