Exemplo n.º 1
0
function flickr_photo_save_jpeg($photo, $file_path)
{
    $jpeg = flickr_photo_jpeg_data($photo);
    $result = file_put_contents($file_path, $jpeg);
    if (!$result) {
        throw new Exception("Couldn't save flickr jpeg data to file.");
    }
}
Exemplo n.º 2
0
function photo_save_jpeg($photo, $file_path)
{
    $jpeg = flickr_photo_jpeg_data($photo);
    $result = file_put_contents($file_path, $jpeg);
    //echo $result;
    if (!$result) {
        die("Couldn't save flickr jpeg data to file.");
    }
}