note 95455 added to function.fopen

From: Date: Mon, 04 Jan 2010 10:43:42 +0000
Subject: note 95455 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-164589@lists.php.net to get a copy of this message
if fopen() throws a E_WARNING "failed to open stream: HTTP request failed!" at you when opening a valid URL that you know returns data, i advise you to do the following before calling fopen($url,'r'): ini_set ('user_agent', $_SERVER['HTTP_USER_AGENT']); or anyways, set that 'user_agent' with ini_set() to something valid. thanks, pollita|at|php.net @ http://bugs.php.net/bug.php?id=22937#c64196 , for the clue to this ---- Server IP: 91.199.167.223 Probable Submitter: 212.123.162.96 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/95455 Del: integrated -- https://master.php.net/note/delete/95455/integrated Del: useless -- https://master.php.net/note/delete/95455/useless Del: bad code -- https://master.php.net/note/delete/95455/bad+code Del: spam -- https://master.php.net/note/delete/95455/spam Del: non-english -- https://master.php.net/note/delete/95455/non-english Del: in docs -- https://master.php.net/note/delete/95455/in+docs Del: other reasons-- https://master.php.net/note/delete/95455 Reject -- https://master.php.net/note/reject/95455 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164589) next »