Hello all,
Consider this:
require 'Twitter.class.php';
$tweet = new Twitter("username", "password");
foreach($comment as $key => $value) {
$link = $db->get_row("sql query");
//sleep(10;)
$tweet->update('$link');
}
}
This makes a new twitter message for every loop, the loop happens about 10 times and I expect 10 twitter messages to be sent to my account. However, at best only 1 or 2 arrive.
Is there a time that I have to wait between tweets? I have tried the sleep function but that didn't solve anything. Do I need to wait for longer? I couldn't find anything much in the documentation.
Before I attempt something such as saving tweets to a DB and using a cron job or something to process the tweets. I prefer to get it working in the above. Please help. :)
Thanks all