agn Posted April 27, 2009 Share Posted April 27, 2009 I get the above error when trying to use file_get_contents or get_headers function. I have allow_url_fopen = On in php.ini. Any ideas what the issue might be ? Am thinking it might be the firewall. Any other suggestions ? Link to comment https://forums.phpfreaks.com/topic/155796-failed-to-open-stream-http-request-failed/ Share on other sites More sharing options...
avvllvva Posted April 27, 2009 Share Posted April 27, 2009 Check the remote file is an existing one. Try to open it directly. And Post your code. Link to comment https://forums.phpfreaks.com/topic/155796-failed-to-open-stream-http-request-failed/#findComment-820114 Share on other sites More sharing options...
PFMaBiSmAd Posted April 27, 2009 Share Posted April 27, 2009 I'm thinking that the full error message probably provides a clue as to why it is failing. Post the whole error message. xxxxxx out any sensitive information, but don't change any of the wording or syntax of the error message. Link to comment https://forums.phpfreaks.com/topic/155796-failed-to-open-stream-http-request-failed/#findComment-820117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.