Post to Twitter?

In the bit where it says:

new URL("tick.php").openStream();

you have to make sure you use the proper URI for the PHP script, i.e. you prefix the "tick.php" with your own domain name:

new URL("http:/www.arduino.cc/tick.php").openStream();