Hi, I have this piece of code that sends a request for a url
But for one reason or another curl_init doesnt work. how do i convert this to another method like fopen or something, i have fidled with it but cant get it to workCode:}
// Make an http request to the specified URL and return the result
function make_http_request($url){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
please can someone have a look at this.
thanks
alex
