Login   Register  
PHP Classes
elePHPant
Icontem

File: pwaphoto.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Thomas Jakober  >  PicasaWeb class  >  pwaphoto.php  >  Download  
File: pwaphoto.php
Role: Auxiliary script
Content type: text/plain
Description: retrieves a photo from an album
Class: PicasaWeb class
Display galleries of photos from PicasaWeb albums
Author: By
Last change:
Date: 2009-06-19 07:14
Size: 361 bytes
 

Contents

Class file image Download
<?php

/**
 * pwaphoto.php
 *
 * @version $Id$
 * @copyright 2009
 */

include "picasaweb.class.php";

$oPwa = new picasaweb();
$oPwa->login($_GET['username'], $_GET['password']);
$oPwa->getPhoto($_GET['albumid'], $_GET['photoid']);
$oImage imagecreatefromjpeg($oPwa->aPhoto['url']);
header('Content-type: image/jpeg');
imagejpeg($oImage);
?>