I recently developed a tweet recovery application, and I found it more useful to use the twitter search API via AJAX (JSONP for area requests). Through the twitter search API, you can query the twitter database with the same words that you use on twitter web pages and collect the results that you can view as you like.
However, if you prefer php scripts, I suggest you use twitter libraries.
source share