Here is a very simple script (2 PHP files) that will allow you to send tweets automatically with a PHP server (PHP5) ! This is an easy way to gain time, of course you shouldn't spam Twitter, just add your own code in auto.php to choose what and how often you want to post... With the second file, you may also use the other functions, see the readme file to learn how to use it.
auto.php
<?
include "twitter.lib.php";
$twitter_user = '';
$twitter_pass = '';
$twitt = 'This is a test';
$twitter = new Twitter($twitter_user, $twitter_pass);
$twitter->updateStatus($twitt);
?>
twitter.lib.php
<?php
/*
* Copyright (c) <2008> Justin Poliey <jdp34(at)njit.edu>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
class Twitter {
/* Username:password format string */
private $credentials;
/* Contains the last HTTP status code returned */
private $http_status;
/* Contains the last API call */
private $last_api_call;
/* Twitter class constructor */
function Twitter($username, $password) {
$this->credentials = sprintf("%s:%s", $username, $password);
}
function getFriends($format, $id = NULL) {
// take care of the id parameter
if ($id != NULL) {
$api_call = sprintf("http://twitter.com/statuses/friends/%s.%s", $id, $format);
}
else {
$api_call = sprintf("http://twitter.com/statuses/friends.%s", $format);
}
return $this->APICall($api_call, true);
}
function lastStatusCode() {
return $this->http_status;
}
function lastAPICall() {
return $this->last_api_call;
}
}
?>
readme
Twitter interface class
Justin Poliey <jdp34(at)njit.edu>
http://github.com/jdp/twitterlibphp
First release Nov 26 2007
Newest release Aug 14 2008
This is a simple interface to the Twitter API.
I've tried to keep as close as possible to the real API
calls (some had to be changed due to ambiguity), but all
of the arguments are as they are in the official docs.
For documentation, check the project wiki:
http://github.com/jdp/twitterlibphp/wikis
Usage:
$twitter = new Twitter("username", "password");
$public_timeline_xml = $twitter->getPublicTimeline("xml");
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
A great script.
*pagobi (2010-05-07 04:16:54) Auto Tweets : Twitt Generator
test test test test test
*jasose (2010-05-08 07:38:21) 14 years ago
I want to see how this thing works!
*zomama (2010-07-05 18:48:01) 14 years ago
hello hello hello hello hello
See also
ficgs More websites
You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.
admin Other websites
The following links might be less relevant, please change their ranks if you find them useful.
Nothing found for Faq+Auto+Tweets+%3A+Tweet+Generator&amp;sa=X tweetadder > faq+
Nothing found for Automated-unique-tweet-generator-for-twitter+Auto+Tweets+%3A+Tweet+Generator&amp;ct=clnk tweetadder
Auto Tweet Generator - Download.com download.cnet
The posting of advertisements, profanity, or personal attacks is...
Nothing found for +Auto+Tweets+%3A+Tweet+Generator&amp;ct=clnk tweetadder > +
Auto Tweet Generator Tweets Messages For you On Autopilot forums.digitalpoint > showthread.php?t=2140806+
Word Press Auto Content Generator with MRR for $3 by... Auto Tweet Generator Tweet Messages On Autopilot With...
Auto Tweet Generator - Download.com download.cnet
The posting of advertisements, profanity, or personal attacks is...
Nothing found for Twitter-tools &amp;sa=U&amp;ei=TjxXT7atIueQ0AXeseDJDQ&amp;ved=0CDkQFjAO&amp;usg=AFQjCNFS2vWuVINbHEG... justtweetit > twitter tools/&sa=U&ei=TjxXT7atIueQ0AXeseDJDQ&
Nothing found for Twitter-tools +Auto+Tweets+%3A+Tweet+Generator&amp;sa=X justtweetit > twitter tools/+
Nothing found for +Auto+Tweets+%3A+Tweet+Generator&amp;ct=clnk autotwitterreview > +
The page you're looking for no longer exists - Y! Downloads downloads.yahoo > software/windows web tools
You have chosen to report a review as abusive, do you wish to...
We couldn't find it! chrisjgrant.posterous
Nothing found for &amp;sa=U&amp;ei=TjxXT7atIueQ0AXeseDJDQ&amp;ved=0CE4QFjAV&amp;usg=AFQjCNHUbdN0COiLdT2lcUqp9qK2CJhEM... autotwitterreview > &sa=U&ei=TjxXT7atIueQ0AXeseDJDQ&ved=
Auto Follow Friday for Twitter (by @mrboo) autoff > &sa=U&ei=TjxXT7atIueQ0AXeseDJDQ&ved=0CFcQFjAY&a