Page Json - Flickr

* Webservice Json

<?php
$keyword = "twitter";
$keyword = $_POST["key"] ;
 
 
echo <<<EOB
<br/>
<center>
<form action="twitter.php" method="post">
 <p>Mot cle : <input type="text" name="key" value="{$keyword}" /> <input type="submit" value="OK"> </p>
</form>
</center>
EOB;
 
 
 
//$Flickr = file_get_contents("http://api.flickr.com/services/feeds/photos_public.gne?tags=".$keyword."&tagmode=all&format=json");
 
$feed_Flickr = 'http://api.flickr.com/services/feeds/photos_public.gne?tags='.$keyword.'&lang=en-us&format=json&nojsoncallback=1';
$Flickr = file_get_contents($feed_Flickr);
$flickrResponse = str_replace("\\'", "'", $Flickr);
$results = json_decode($flickrResponse, true);
 
print_r($results);
 
?>