I am using it for the last 7 days, In this period, it has stopped collecting data twice. The program is still running, I can see the process ids, but no data is coming. This is my code,
class FilterTrackConsumer extends Phirehose { public function enqueueStatus($status) { $tweet = json_decode($status, true); if (is_array($tweet) && isset($tweet['user']['screen_name'])) { $text = $tweet['text']; if($text != ""){ -----storing data-------- } } } } $ptrKeyWord = mysql_query("SELECT * FROM keywords"); $track = ""; while($arrKeyWord = mysql_fetch_array($ptrKeyWord)) { $track .= stripslashes($arrKeyWord["keyword_word"]) . ","; } $track = substr($track, 0, -1); $ptrFollow = mysql_query("SELECT * FROM users_follow WHERE user_id > 0"); $strFollow = ""; while($arrFollow = mysql_fetch_array($ptrFollow)) { $strFollow .= $arrFollow["user_id"] . ","; } $strFollow = substr($strFollow, 0, -1); // Start streaming $sc = new FilterTrackConsumer('user', 'pwd', Phirehose::METHOD_FILTER); $sc->setTrack(array($track)); $sc->setFollow(array($strFollow)); $sc->consume(); On Jan 18, 7:44 am, Fenn <fenn.bai...@gmail.com> wrote: > Hi there, > > I'm the author of Phirehose and was wondering if you guys have tried > it/are having any sorts of problems. > > I use it myself and haven't had any problems with it randomly stopping > (so far) or at least, not that I've noticed. > > That's not to say that there's not an implementation problem there > somewhere :) > > Phirehose should be a lot more robust than the simple examples in that > old blog post there as it does handle reconnects, HTTP response > errors, retry backoff, etc, etc. > > Happy to work with you guys to solve any probs - > > Cheers! > > Fenn. > > On Jan 17, 5:27 am, Jacopo Gio <jacopo...@gmail.com> wrote:> Same for us, > George. > > > But what are the alternatives ? > > > On Jan 15, 6:17 pm, GeorgeMedia <georgeme...@gmail.com> wrote: > > > > I'm looking for a solid PHP library to access the gardenhose and just > > > wondering if anyone is successfully implementing this using phirehose. > > > It seems to be the only one out there... > > > > This fairly dated code seems to work for random periods of time then > > > stops. > > > >http://hasin.wordpress.com/2009/06/20/collecting-data-from-streaming-...