# Twitter PHP API

**URL:** <https://forum.kirupa.com/t/twitter-php-api/310141>\
**Category:** programming\
**Created:** [June 2, 2010, 4:50pm UTC](https://forum.kirupa.com/t/twitter-php-api/310141 "2010-06-02T16:50:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrE](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mre/32/511_2.png) [@mrE](https://forum.kirupa.com/u/mrE)\
**Post date:** [June 2, 2010, 4:50pm UTC](https://forum.kirupa.com/t/twitter-php-api/310141/1 "2010-06-02T16:50:51Z")

</div>

Hi.  
I’m using the PHP Twitter search API and I am running into a few issues.

**Issue #1**  
I am able to make a query searching for posts with hashtags, and I am able to exclude certain terms such as cuss words, or random things like “www.” or “http://” (because I don’t want any results with URLs in them).

However, it seems that if I have too many exclusions or rules, it does not allow me to run the query. That’s fine - because in that case, I can just ask for a larger amount of results and filter them out using PHP if it’s not already in my query to exclude certain things.

However - it seems that randomly, it keeps decreasing the number of search terms (or in my case, negative search terms) that I can use before it just craps out.

Anybody experience this?

**Issue #2**  
I want to be able to show random results - not necessarily the latest and greatest results. Anyone know how to pull random results or how to simulate random results? I’m sure I could figure out how to simulate a random result page but I’m looking for better options.
