How can I turn fopen() for URLs on because i keep getting this message
URL file-access is disabled in the server configuration in
EDIT: Acutally, what can I do in place of this, because I found the answer, but I don't have access to php.ini
Turn Off fopen() for URL
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
It is installed...
I was using:
would this be right for cURL:
I want to make sure, because the site is live... but my host, had to randomly remove it without telling me.
I was using:
Code: Select all
$fp = fopen($state,"r");
while($data_in = fread($fp, 4096)){
$data_output[] = $data_in;
}
$data = join('',$data_output);
fclose($fp);would this be right for cURL:
Code: Select all
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $state);
$getresponse = curl_exec ($ch);
$data = $getresponse;
curl_close($ch);- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida