The Phirehose library for PHP and the Twitter Streaming API is well tested and widely used. I'd start by looking at their code.
-John On Sun, Jan 16, 2011 at 12:18 PM, webjay <[email protected]> wrote: > I should probably ask in a Php group, but I'll try here first, in case it's > Twitter related. > > When I connect with stream_socket_client('tcp://stream.twitter.com:443') I > get a 401 unauthorized error immediately. > If I use fopen('https://stream.twitter.com/1/statuses/sample.json') I get > a connection. > > The reason I would like to use stream_socket_client is to be able to use > STREAM_CLIENT_ASYNC_CONNECT. > > Is this not possible? > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
