superkeest Posted September 10, 2010 Share Posted September 10, 2010 I have a script that uses fopen, except the site doesn't allow it. does any one know how i can rewrite this using curl? f(isset($_REQUEST['l']) && $_REQUEST['l'] <> ''){ $link = VAR.'/blah/blaf/blah/'.rawurlencode($_REQUEST['l']).'/blah/1'; $fp = fopen($link,'r'); foreach($http_response_header as $v){if(substr($v,0,7)=='Content'){header($v);}} fpassthru($fp); fclose($fp); }else{echo 'Parameters not set';} Im kindof a noob. Link to comment https://forums.phpfreaks.com/topic/213083-curl-instead-of-fopen/ Share on other sites More sharing options...
superkeest Posted September 15, 2010 Author Share Posted September 15, 2010 bump Link to comment https://forums.phpfreaks.com/topic/213083-curl-instead-of-fopen/#findComment-1111340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.