Originariamente inviato da luisa227
la linea che da errore è quella dove cè $name..come posso rivolvere? e perche solo ogni tanto mi da errore?
codice:
// Get tweets into an array.
        $twitterData = json_decode($json['body'], true);
        
        // Now update the array to store just what we need.
        // (Done here instead of PHP doing this for every page load)
        foreach ($twitterData as $tweet) :
            // Core info.
            $name = $tweet['user']['name'];
            $permalink = 'http://twitter.com/#!/'. $name .'/status/'. $tweet['id_str'];