Tag Archives: pear

Complete working sample for Services_Twitter OAuth in PHP PEAR

You can get some sample codes for Services_Twitter with OAuth from php doc, but it’s not a complete code. I rewrote some parts. % pear install –alldeps Services_Twitter-alpha <?php if (isset($_GET[’clear’])) { // sometimes you need to clear session, just access ?clear=1 session_start(); $_SESSION = array(); session_destroy(); die(’session has been cleared.’); }     define(’CONSUMER_KEY’, […]

Posted in Create | Also tagged , , | Comments closed