public static function touchRemoteFile($imageUrl)
    {
        // Get cURL resource
        $curl = curl_init($imageUrl);
        if (!$curl) {
            return false;
        }
        // Set some options - we are passing in a useragent too here
        curl_setopt_array($curl, array(
            CURLOPT_RETURNTRANSFER => 1,
            CURLOPT_URL => $imageUrl,
            CURLOPT_USERAGENT => 'Splash cURL Agent'
        ));
        // Send the request & save response to $resp
        $resp = curl_exec($curl);
        // Close request to clear up some resources
        curl_close($curl);

        return (false != $resp);
    }
public static function touchRemoteFile($imageUrl)
    {
        // Get cURL resource
        $curl = curl_init($imageUrl);
        if (!$curl) {
            return false;
        }
        // Set some options - we are passing in a useragent too here
        curl_setopt_array($curl, array(
            CURLOPT_RETURNTRANSFER => 1,
            CURLOPT_URL => $imageUrl,
            CURLOPT_USERAGENT => 'Splash cURL Agent'
        ));
        // Send the request & save response to $resp
        $resp = curl_exec($curl);
        // Close request to clear up some resources
        curl_close($curl);

        return (false != $resp);
    }
public static function touchRemoteFile ( $ imageUrl ) { // Get cURL resource $ curl = curl_init ( $ imageUrl ) ; if ( ! $ curl ) { return false ; } // Set some options - we are passing in a useragent too here curl_setopt_array ( $ curl , array ( CURLOPT_RETURNTRANSFER => 1 , CURLOPT_URL => $ imageUrl , CURLOPT_USERAGENT => 'Splash cURL Agent' ) ) ; // Send the request & save response to $resp $ resp = curl_exec ( $ curl ) ; // Close request to clear up some resources curl_close ( $ curl ) ; return ( false != $ resp ) ; }
Uses CURL to GET Remote Image Once

@param string $imageUrl

@return bool
Uses CURL to GET Remote Image Once