Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4105208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:13:00+00:00 2026-05-20T21:13:00+00:00

i have search the whole net for finding af NICE and easy and simple

  • 0

i have search the whole net for finding af NICE and easy and simple method to get twitter status and now i found one.. but it dont work

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

but it says

“Notice: Use of undefined constant text – assumed ‘text’ in /Applications/MAMP/htdocs/test/twitterWidget/twitter.php on line 8

iPad2 simulator /w Css3, Jquery and HTML5 http://t.co/GaNMTbg via @altryne”

what do i need to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:13:01+00:00Added an answer on May 20, 2026 at 9:13 pm
    <?php
    $json = file_get_contents("http://twitter.com/status/user_timeline/tareq_cse.json?count=10", true);
    $decode = json_decode($json, true);
    
    echo "<pre>";
    $count = count($decode); //counting the number of status
    for($i=0;$i<$count;$i++){
    echo $decode[$i]['text']."<br>"; // in the original code there was $decode[$i][text] which is not correct
    }
    echo "</pre>";
    ?>
    

    You have to put that text index in the 8th row into qoutes. I’ve posted here the corrected version.

    The last code example block on that site also has the same error throughout all its lines. You must put string array indexes into quotation marks to avoid notices.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have implemented Solr search in one of my .net application. Everything working fine
We have a whole bunch of queries that search for clients, customers, etc. You
I have search strings, similar to the one bellow: energy food olympics 2010 Terrorism
I have an ASP.NET page that contains two div's. Both have search fields and
Situation:I have an ASP .NET application that will search through docs using Lucene. I
I have one asp.net application, which has some problems while i am entering the
I want to use Lucene.NET for fulltext search shared between two apps: one is
Let's say I have a form where users can search for people whose name
I have a textbox whose input is being handled by jQuery. $('input.Search').bind(keyup, updateSearchTextbox); When
I have search everywhere for help and its starting to annoy me. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.