curl buffers, even when called with -N. You won't get satisfactory results with curl unless you get a lot of data. Use wget instead.
Joseph Cheek jos...@cheek.com, www.cheek.com twitter: http://twitter.com/cheekdotcom John Kalucki wrote: > I'd suggest trying to get this to work with curl first. Then, see what > the differences are in your implementation. > > -John Kalucki > http://twitter.com/jkalucki > Services, Twitter Inc. > > On Sep 19, 7:31 am, Greg <gregory.av...@gmail.com> wrote: > >> I'm trying to implement Streaming API on my Twitter application to >> enhance the stabilty instead of using the Search API. >> >> Basically - I'm trying to use the track paramter to track a keyword. >> However, when I run this code - it just times out - nothing occurs. >> Perhaps I'm not using the track parameter correctly? >> >> I know I'm just dumping the code right now - but it was merely for >> test. >> >> My ad-hoc code is below: >> >> // twitter_stream.php >> <? >> $fp = fopen("http://username:passw...@stream.twitter.com/1/statuses/ >> filter.json?track=ttl,wine", "r"); >> while($data = fgets($fp)) >> { >> $new_data = json_decode($data); >> >> foreach($status as $new_data) >> { >> var_dump($status); >> echo "<hr>"; >> }} >> >> ?> >> >> Thanks for the help! >> >> Greg