News Feed
Sections




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

IBM developerWorks: Integrating Java and PHP in WebSphere sMash

Piotr Pasich: CakePHP with Symfony’s2 router

MaltBlue.com: Zend Form Mastery with Zend Config - Part 1, Custom Filter Paths

PHPRiot.com: Zend Framework 101: Zend_Gdata_YouTube

IBM developerWorks: Efficient mathematical processing using Scilab through PHP


Community Events





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


introduction podcast voicesoftheelephpant symfony laravel mvc composer library series release package security version update interview framework language opinion community tool

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework