staticbits.thefnf.org/fnf2014/js/jsor-jcarousel-7bb2e0a/examples/dynamic_flickr_feed.php

14 lines
330 B
PHP
Raw Permalink Normal View History

2022-09-27 05:51:15 +00:00
<?php
header('Content-type: application/json; charset: utf-'.'8');
//header('Cache-Control: must-revalidate');
$url = 'http://api.flickr.com/services/feeds/photos_public.gne?format=json&nojsoncallback=1';
if (!empty($_REQUEST['tags'])) {
$url .= '&tags=' . urlencode($_REQUEST['tags']);
}
echo file_get_contents($url);
?>