News Feed
Jobs Feed
Sections




News Archive
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

Robert Basic's Blog: Listening to Dbus signals with PHP

DevShed: Defining the Core Structure of a PHP Blogger

PHPBuilder.com: File uploads made easy

Internet Super Hero: PHP: mysqlnd and its tests

WebReference.com: User Personalization with PHP: The Home Page


Community Events











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


code tool framework zendframework2 interview unittest podcast testing development community introduction language release example composer opinion functional object series conference

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