Reduce the image file size using PHP: <?php $name = ”; $type = ”; $size = ”; $error = ”; function compress_image($source_url, $destination_url, $quality) …
Read MoreCurl
Get file content from a URL?
Get file content from a URL? $jsonData = json_decode(file_get_contents(‘https://chart.googleapis.com/chart?cht=p3&chs=250×100&chd=t:60,40&chl=Hello|World&chof=json’)); However, if allow_url_fopen isn’t enabled on your system, you could read the data via CURL as …
Read MoreGet contents using curl
$my_location_ip =’95.212.128.0′; //syria $my_location_ip =’27.49.37.170′; $url = “http://ipinfo.io/{$my_location_ip}/json”; ##Get a web file (HTML, XHTML, XML, image, etc.) from a URL. Return an ##array containing the …
Read More