News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fabien Potencier's Blog:
Tweeting from PHP
June 15, 2009 @ 10:25:15

Fabien Potencier has posted a quick and dirty method for sending a tweet to Twitter directly from a PHP script (provided you have a username and password already).

Twitter is everywhere nowadays. Odds are eventually you will want to tweet from PHP. No need to use one of the numerous PHP Twitter libraries, as tweeting is as simple as using the PHP built-in file_get_contents() function.

His example creates a stream (stream_context_create) and calls file_get_contents to send the HTTP request to the twitter API URL.

0 comments voice your opinion now!
stream tutorial twitter

blog comments powered by Disqus

Similar Posts Fetching Data With Zend_Db

Vid Luther's Blog: Talking to multiple databases with Symfony 1.2

DevShed: Drawing Basic Rectangles in PDF Documents with PHP 5

Zend Developer Zone: NP-Gravatar

DevShed: Working with Template Classes in PHP 5

Community Events

Don't see your event here?
Let us know!

security release opinion podcast api laravel voicesoftheelephpant introduction series threedevsandamaybe community library laravel5 symfony framework version language extension unittest interview

All content copyright, 2015 :: - Powered by the Solar PHP Framework