php - These code working on my local but not working on hosting -


i have coded script main page of filejoker.net. run code on local host (xampp) not working same code on webhost. in local, shows main page source in webhost returns me blank page.

codes;

<?php  function curl($url,$cookie = 0,$post = 0,$header = 1,$follow = 0,$proxy = 0){  $ch = curl_init($url);  curl_setopt($ch,curlopt_returntransfer,1);  curl_setopt($ch,curlopt_useragent,'mozilla/5.0 (windows nt 6.1; rv:5.0) gecko/20100101 firefox/5.0');  curl_setopt($ch,curlopt_cookiejar,"ck.txt");  curl_setopt($ch, curlopt_referer,$url);  curl_setopt($ch,curlopt_cookiefile,"ck.txt");  if($cookie) curl_setopt($ch,curlopt_cookie,$cookie);  if($post){      curl_setopt($ch,curlopt_post,1);      curl_setopt($ch,curlopt_postfields,$post);  }  if($header) curl_setopt($ch,curlopt_header,1);  if($follow) curl_setopt($ch,curlopt_followlocation,1);  curl_setopt($ch, curlopt_ssl_verifypeer, 0); curl_setopt($ch, curlopt_ssl_verifyhost, 0);  if($proxy) curl_setopt($ch,curlopt_proxy,$proxy);  $data = curl_exec($ch);  return $data;  }  $data = curl("https://filejoker.net/",0,0,1,0,0);  echo $data;  ?> 

please me x(


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -