/ Published in: PHP
Expand |
Embed | Plain Text
function t_co($url){ $user='[Your Twitter Account Name]'; $pass='[Your Twitter login Password]'; 'url'=>$url, 'session[username_or_email]'=>$user, 'session[password]'=>$pass, 'commit'=>'LOGIN' ); $ch=curl_init('http://twitter.com/share'); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch,CURLOPT_POST,TRUE); curl_setopt($ch,CURLOPT_POSTFIELDS,$params); $output=curl_exec($ch); curl_close($ch); } } # Example
Comments
Subscribe to comments
You need to login to post a comment.

this snippet is unofficial...