fork download
  1. <?php
  2. // you can add anoother curl options too
  3. // see here - http://p...content-available-to-author-only...p.net/manual/en/function.curl-setopt.php
  4. function get_dataa($url) {
  5. $ch = curl_init();
  6. $timeout = 5;
  7. curl_setopt($ch, CURLOPT_URL, $url);
  8. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)");
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
  11. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
  12. curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
  13. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  14. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  15. $data = curl_exec($ch);
  16. curl_close($ch);
  17. return $data;
  18. }
  19.  
  20. $variableee = get_dataa('https://b...content-available-to-author-only...l.pl');
  21. echo $variableee;
  22. ?>
Success #stdin #stdout 0.03s 26100KB
stdin
Standard input is empty
stdout
Standard output is empty