Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[SERVER_NAME]";
- $keywords = json_decode(file_get_contents('http://tools.dojo.cc/api/trends/p1/keywords'), true);
- foreach($keywords as $keyword){
- echo '<ul>';
- echo '<li><a href="'.$actual_link.'/'. strtolower(str_replace(' ', '-', $keyword)) . '.html">' . $keyword . '</a></li> ';
- echo '</ul>';
- }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement