this little snippet makes a real-time analog clock with the GD library. don't assume that it's good for the server though...
click here to select all the code