Kod
Kod
<?php
$e = curl_init();
$adres2='http://example.pl';
curl_setopt($e, CURLOPT_URL, $adres2);
curl_setopt($e, CURLOPT_POST, 1);//przesylamy metodą post
curl_setopt($e, CURLOPT_POSTFIELDS, 'username=username&password=password&submitted=Login');
curl_setopt($e, CURLOPT_REFERER,'http://google.pl');
curl_setopt($e, CURLOPT_COOKIESESSION, 1);
curl_setopt($e, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($e, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($e, CURLOPT_COOKIEJAR, $cookiefile);
$page = curl_exec($e);
?>
$e = curl_init();
$adres2='http://example.pl';
curl_setopt($e, CURLOPT_URL, $adres2);
curl_setopt($e, CURLOPT_POST, 1);//przesylamy metodą post
curl_setopt($e, CURLOPT_POSTFIELDS, 'username=username&password=password&submitted=Login');
curl_setopt($e, CURLOPT_REFERER,'http://google.pl');
curl_setopt($e, CURLOPT_COOKIESESSION, 1);
curl_setopt($e, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($e, CURLOPT_COOKIEFILE, $cookiefile);
curl_setopt($e, CURLOPT_COOKIEJAR, $cookiefile);
$page = curl_exec($e);
?>
Jednak wyskakuje błąd Kod
Kod
Fatal error: Call to un in /virtual/s/m/smsy.ugu.pl/ryjek.php on line 2
Nie mam pojęcia czy jest na serwerze zainstalowana biblioteka curl bo to nie mój serwer.
Co może być przyczyną jego pojawianaia się?