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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Jessica Posted July 13, 2012 Share Posted July 13, 2012 error_reporting ini_set Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.