fork(1) download
  1. <?php
  2.  
  3.  
  4. $ch = curl_init();
  5.  
  6. curl_setopt($ch, CURLOPT_URL, "example.com");
  7.  
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9.  
  10. $output = curl_exec($ch);
  11. echo $output;
  12. curl_close($ch);
  13.  
  14. ?>
  15.  
Success #stdin #stdout 0.03s 23668KB
stdin
Standard input is empty
stdout
Standard output is empty