Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Blekko</h1>
- <?php
- $cerv = 'http://blekko.com/ws/?q=cervantes+/json&auth=f4c8acf3';
- $fx = curl_init();
- curl_setopt($fx, CURLOPT_URL, $cerv);
- curl_setopt($fx, CURLOPT_RETURNTRANSFER, $cerv);
- $newdata = curl_exec($fx);
- curl_close($fx);
- $json = json_decode($newdata);
- var_dump($json->{'newitems'});
- foreach($json->{'newitems'} as $newitems)
- {
- echo $newitems->{'url_title'}. ": ".$newitems->{'snippet'}."<br>";
- }
- /*
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement