PHP Classes

File: example-get.php

Recommend this page to a friend!
  Classes of Scoot Kemery   PHP cURL Multiple Requests   example-get.php   Download  
File: example-get.php
Role: Example script
Content type: text/plain
Description: example get method
Class: PHP cURL Multiple Requests
Send several HTTP requests to the different URLs
Author: By
Last change:
Date: 5 years ago
Size: 386 bytes
 

Contents

Class file image Download
<?php
require_once("sdata-modules.php");
/**
 * @Author: Eka Syahwan
 * @Date: 2017-12-11 17:01:26
 * @Last Modified by: Nokia 1337
 * @Last Modified time: 2019-05-29 22:02:20
 */
$url = array();
for (
$i=0; $i <12; $i++) {
   
$url[] = array(
       
'url' => 'http://ip-api.com/json?id='.$i,
       
'note' => 'optional',
    );
}
$result = $sdata->sdata($url);
print_r($result);