Jonatanpn

Untitled

Nov 27th, 2020
547
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  $llamar = new class{
  3.    public function curl($file){
  4.      $ch = curl_init();
  5.      sleep(5);
  6.      curl_setopt($ch, CURLOPT_URL, "https://webdeejemplo.com/images/API5/".$file);
  7.      curl_setopt($ch, CURLOPT_NOBODY, 1);
  8.      curl_setopt($ch, CURLOPT_HEADER, 0);
  9.      curl_exec($ch);
  10.      curl_close($ch);
  11.    }
  12.  };
  13.  foreach (glob("producto-*.php") as $name){
  14.    $llamar->curl($name);
  15.  }
  16. ?>
RAW Paste Data