html - PHP - How to get images from Instagram for more than 1 tag -


guys i'm working on php script getting images specific tag in instagram.

here code:

<?php  function callinstagram($url)     {     $ch = curl_init();     curl_setopt_array($ch, array(     curlopt_url => $url,     curlopt_returntransfer => true,     curlopt_ssl_verifypeer => false,     curlopt_ssl_verifyhost => 2     ));      $result = curl_exec($ch);     curl_close($ch);     return $result;     }      $tag = "sweden";     $client_id = "1e0f576fbdb44e299924a93cace24507";     $next_url = $_get["nexturl"];     if($next_url == ""){     $url = 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent?client_id='.$client_id.'&count=24';     } else {     $url =  $next_url;     }     $inst_stream = callinstagram($url);     $results = json_decode($inst_stream, true);     $maxid = $results['pagination']['next_max_id'];     $nexturl = $results['pagination']['next_url'];     //now parse through $results array display results...      ?>     <div class="holder" style="display:block;margin-left:70px;">     <?php     foreach($results['data'] $item){         $image_link = $item['images']['thumbnail']['url'];         $big_image = $item['images']['standard_resolution']['url'];     echo "image: $image_link";     } 

this script getting information 1 tag - sweden.

how can make code information more 1 tag, example let's 2 tags - england , germany ?

thanks in advance!


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -