cURL error

Hosting: dot5.com

Support mi kar razlaga kak pa kaj, vendar nic konkretnega ne resijo, baje moram dodat neko kodo v php.ini, vendar neimam pojma kje pa kak. Bi prosil za pomoč.

evo se error pri instalaciji:

Warning: fopen(): URL file-access is disabled in the server configuration in /home/arenapet/public_html/arcadespring.com/phpcipher.bin(233) : eval()'d code on line 48

Warning: fopen(http://www.arcadescript.com/checkLicense.php?check=www.arcadespring.com)::) failed to open stream: no suitable wrapper could be found in /home/arenapet/public_html/arcadespring.com/phpcipher.bin(233) : eval()'d code on line 48

Warning: fread(): supplied argument is not a valid stream resource in /home/arenapet/public_html/arcadespring.com/phpcipher.bin(233) : eval()'d code on line 48

Preveri www.dvdcent.com pravtako ta error.

4 odgovori

To nima veze s cURL, support ti pa verjetno govori nekaj v zvezi s temle, kajne?

Točno to! In nimam pojma kak naj omogocim tole oz kje se to ureja.:mad:

allowurlfopen Has Been Disabled on Our Servers
For security reasons, we've globally disabled allowurlfopen in the default php.ini files. This will not affect most sites, but for some, it will cause some PHP pages to stop working as expected. There is no way to override this change. Pages and functionality relying on allowurlfopen will need to be adjusted to use another means of remote file access.

There are other, safer means of accessing remote data. One such method is using cURL. cURL is built into php and is much safer (and generally better performing!) than fopen. A general overview of how to use cURL with php can be found here:
http://www.codeandcoffee.com/2006/07/17/how-to-use-curl-with-php/

If you'd like to attempt to replace fopen calls with cURL calls, you can try using the sample code found on the php.net fopen manual page:
http://us2.php.net/manual/en/function.fopen.php#55922

The below function approximates what fopen does, and allows you to get around using allowurlfopen. You will, however, have to adapt your php code to use the function.

/*
* @return string
* @param string $url
* @desc Return string content from a remote file
* @author Luiz Miguel Axcar (lmaxcar@yahoo.com.br)
*/

function getcontent($url) {
$ch = curl
init();
curlsetopt ($ch, CURLOPTURL, $url);
curlsetopt ($ch, CURLOPTHEADER, 0);
obstart();
curl
exec ($ch);
curlclose ($ch);
$string = ob
getcontents();
ob
end_clean();
return $string;
}

#usage:
$content = getcontent ("http://www.php.net");
var
dump ($content);

Evo :) .......