xymalf Posted July 12, 2012 Share Posted July 12, 2012 <?php require_once("phpFlickr.php"); $phpFlickrObj = new phpFlickr('1a2755a9a5a19904c7f5e661d85db657'); $user = $phpFlickrObj->people_findByUsername('stathisg'); $user_url = $phpFlickrObj->urls_getUserPhotos($user['id']); $photos = $phpFlickrObj->people_getPublicPhotos($user['id'], NULL, NULL, 4); foreach ($photos['photos']['photo'] as $photo) { echo '<a href="'.$user_url.$photo['id'].'" title="'.$photo['title'].' (on Flickr)" target="_blank">'; echo '<img alt="'.$photo['title'].'" src="'.$phpFlickrObj->buildPhotoURL($photo, "square").'" />'; echo '</a>'; } ?> I am using the above index.php file as my call back url from flickr when i try and run the code above all i see is a blank page - what is wrong? Also I want to connect to mySQL data base DEFINE ('DB_USER', 'xymalfco1'); DEFINE ('DB_PASSWORD', 'po'); DEFINE ('DB_HOST', '217.174.253.'); DEFINE ('DB_NAME', 'xymalfco1'); the above definitions don't seem to work. What I want to create is a page of the Flickr users photo's that are authorised by the Auth.php file and then displays the users and those people he follows photos. Link to comment https://forums.phpfreaks.com/topic/265582-php-flickr/ Share on other sites More sharing options...
Jessica Posted July 12, 2012 Share Posted July 12, 2012 Ensure error reporting is turned on and set to E_ALL. This belongs in third party, btw. Link to comment https://forums.phpfreaks.com/topic/265582-php-flickr/#findComment-1361159 Share on other sites More sharing options...
xymalf Posted July 12, 2012 Author Share Posted July 12, 2012 hOW do i turn on the error reporting i am just a newbie. Link to comment https://forums.phpfreaks.com/topic/265582-php-flickr/#findComment-1361168 Share on other sites More sharing options...
Jessica Posted July 13, 2012 Share Posted July 13, 2012 error_reporting ini_set Link to comment https://forums.phpfreaks.com/topic/265582-php-flickr/#findComment-1361288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.