fork download
  1. <?php
  2. $ch = curl_init('http://c...content-available-to-author-only...i.com/p1/gibitel/image/data/resimler/asics-gel-rocket-11-erkek-voleybol-ayakkabisi-77143.jpg');
  3. curl_setopt($ch, CURLOPT_HEADER, 0);
  4. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
  6. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
  7. //curl_setopt($ch, CURLOPT_VERBOSE, true); // Enable this line to see debug prints
  8. //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  9. //curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  10. $raw = curl_exec($ch);
  11. $statuscode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // return curl response code
  12. curl_close($ch);
  13. echo $xml1
  14. ?>
  15.  
Success #stdin #stdout #stderr 0.03s 26068KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: xml1 in /home/WxuPSY/prog.php on line 13