cURL error
 
robibrk 18. dec 2007 14:12:49 Pridružen od:
5. nov 2007
69 objav
0 0 0
#1

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.


všeč(0) ni všeč(0) spam(0)
Kršitev [pravil o podpisih](/pravila.html). (spremenil administrator)
 
Vini 18. dec 2007 15:12:40 Pridružen od:
1. sep 2006
6612 objav
5234 611 56
#2

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


všeč(0) ni všeč(0) spam(0)
 
robibrk 18. dec 2007 16:12:14 Pridružen od:
5. nov 2007
69 objav
0 0 0
#3

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


všeč(0) ni všeč(0) spam(0)
Kršitev [pravil o podpisih](/pravila.html). (spremenil administrator)
 
robibrk 18. dec 2007 16:12:33 Pridružen od:
5. nov 2007
69 objav
0 0 0
#4

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);


všeč(0) ni všeč(0) spam(0)
Kršitev [pravil o podpisih](/pravila.html). (spremenil administrator)
 
Vini 18. dec 2007 16:12:39 Pridružen od:
1. sep 2006
6612 objav
5234 611 56
#5

Evo :) .......


všeč(0) ni všeč(0) spam(0)
 
 

🔒 Za odgovor na to temo se moraš prijaviti.

Prijavi se