MadTechie Posted April 3, 2009 Share Posted April 3, 2009 From a default install it should work however their could be something else that blocking it ie firewall can you post your phpinfo() data or your PHP.ini file.. personally i don't think it will help much as this isn't really my topic! Quote Link to comment https://forums.phpfreaks.com/topic/151686-file_get_contents-error/page/2/#findComment-800171 Share on other sites More sharing options...
april2008 Posted April 6, 2009 Author Share Posted April 6, 2009 thanks for the help, even though my problem still not solve yet. Quote Link to comment https://forums.phpfreaks.com/topic/151686-file_get_contents-error/page/2/#findComment-801953 Share on other sites More sharing options...
april2008 Posted April 6, 2009 Author Share Posted April 6, 2009 Problem solve just add in the code below after curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); to detect the proxy setting curl_setopt($ch, CURLOPT_PROXY, "http://xxx.xxx.xxx.xxx:8080"); curl_setopt($ch, CURLOPT_PROXYPORT, 8080); curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "username:password"); thanks everyone Quote Link to comment https://forums.phpfreaks.com/topic/151686-file_get_contents-error/page/2/#findComment-802113 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.