Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: upload images #8412
    bertusnannie
    Participant

    function savePhoto($remoteImage, $isbn) {
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $remoteImage);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 0);
    $fileContents = curl_exec($ch);
    curl_close($ch);
    $newImg = imagecreatefromstring($fileContents);
    return imagejpeg($newImg, "./wp-content/uploads/wpsc/product_images/{$isbn}.jpg",100);
    }
    savePhoto('http://www.shopcast.nl/image.asp?shop=clc&format=large&location=&isbn=9789061269632', 9789061269632);

    in reply to: upload images #8411
    bertusnannie
    Participant

    I found this cUrl function and it seems to work, only it should somehow be implemented in the plugin:

Viewing 2 posts - 1 through 2 (of 2 total)