Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $llamar = new class{
- public function curl($file){
- $ch = curl_init();
- sleep(5);
- curl_setopt($ch, CURLOPT_URL, "https://webdeejemplo.com/images/API5/".$file);
- curl_setopt($ch, CURLOPT_NOBODY, 1);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_exec($ch);
- curl_close($ch);
- }
- };
- foreach (glob("producto-*.php") as $name){
- $llamar->curl($name);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement