<?php // You can use this script to test the holiday generation without tweeting anything. // The code in this file does the scraping. include "whatholidayisit.php"; echo join("<br />\n", holidayMessagesForDate(time()));
<?php // The code in this file does the tweeting. include "api.php"; // The code in this file does the scraping. include "whatholidayisit.php"; function tweetFromArray($updates, $username, $password) { $twitterSession = new Twitter($username, $password); foreach ($updates as $update) { $twitterSession->status->update($update); } } $username = '******'; $password = '******'; tweetFromArray(holidayMessagesForDate(), $username, $password);