fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5.  
  6. ]);
  7.  
  8. $response = curl_exec($curl);
  9. $err = curl_error($curl);
  10.  
  11. curl_close($curl);
  12.  
  13. if ($err) {
  14. echo "cURL Error #:" . $err;
  15. } else {
  16. echo $response;
  17. }
  18. ?>
Success #stdin #stdout 0.03s 26140KB
stdin
Standard input is empty
stdout
cURL Error #:Could not resolve host: api.yelp.com