<?php $url = "http://www.indianfootballonline.com/img/sport/sport_318_test-201.gif"; $imgename = 'test.
gif
'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); file_put_contents($
imgename
, $result); ?>
Wednesday, 9 May 2012
Save Image from remote site(cUrl)
Subscribe to:
Post Comments (Atom)
Disable Caching Drupal 8
1. Copy and rename the sites/example.settings.local.php to sites/default/settings.local.php: $ cp sites / example . settings . local . ph...
-
1. Copy and rename the sites/example.settings.local.php to sites/default/settings.local.php: $ cp sites / example . settings . local . ph...
-
Returns the string str with all occurrences of the string from_str replaced by the string to_str . REPLACE() performs a case-...
-
String.prototype.sprintf = function(a) { if (a.length) { var i = -1; // start at minus 1 return this.replace(/\%(d|s|f...
No comments:
Post a Comment