Twitter data content JSON parsing Issue -


i have script took link

http://tareq.wedevs.com/2009/05/playing-with-twitter-json-using-php/ 

the script below

<?php $json = file_get_contents("http://twitter.com/status/user_timeline/saswatroutroy.json?count=10", true); $decode = json_decode($json, true);  echo "<pre>"; $count = count($decode); //counting number of status for($i=0;$i<$count;$i++) {   echo $decode[$i]."<br>"; } echo "</pre>"; ?> 

it throws me error

a php error encountered  severity: warning  message: file_get_contents(http://twitter.com/status/user_timeline/saswatroutroy.json?count=10) [function.file-get-contents]: failed open stream: http request failed! http/1.0 404 not found  filename: views/recipy_detail.php  line number: 116 

can solve me

it looks me url throwing 404, , file_get_contents accurately throwing error.

could try replacing url 1 returns successful json request.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -