I use this PHP class for Twitter script:
twitter.slawcup.com/twitter.class.phps
script:
$t= new twitter();
$t->username='someuser';
$t->password='somepass';
$res = $t->update($tweet);
if($res===false){
echo "ERROR<hr/>";
echo "<pre>";
print_r($t->responseInfo);
echo "</pre>";
}else{
echo "SUCCESS<hr/>Status Posted";
}
Where the $ tweet variable is the string generated earlier.
He worked fine until June 8, and then he just died.
Now, when I run the code, it gives me:
ERROR
Array
(
[url] => http:
[content_type] => application/xml; charset=utf-8
[http_code] => 400
[header_size] => 1096
[request_size] => 120
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.11795
[namelookup_time] => 3.3E-5
[connect_time] => 0.014397
[pretransfer_time] => 0.014405
[size_upload] => 0
[size_download] => 148
[speed_download] => 1254
[speed_upload] => 0
[download_content_length] => 148
[upload_content_length] => 0
[starttransfer_time] => 0.117829
[redirect_time] => 0
)
What could be wrong? This is especially strange because it worked fine and then it stopped.
source
share