<?php
    $get = file_get_contents("https://duckduckgo.com/i.js?q=love&s=1");
    $decode = json_decode($get, TRUE);
    foreach($decode['results'] as $res) {
        echo "".$res['image']."";
    }
?>
Nothing happens. What's wrong?
Warning: file_get_contents(https://duckduckgo.com/i.js?q=love&s=1) [function.file-get-contents]: failed to open stream: No such file or directory in /home01/rfep/nzfrka/home/mydomain/myfeed/sssfi.php on line 2
failed to open stream
Warning: Invalid argument supplied for foreach() in /home01/rfep/nzfrka/home/mydomain/myfeed/sssfi.php on line 4
 
    
";` try this.. its working.. and showing the images as well – Nishant Solanki Feb 15 '16 at 12:46