This is a selection of PHP code ive written that I feel people may find useful.
This takes the following image
and generates a clock when the page is called like the clock top left of the page
Here is the code for a turing machine solver written in php (you can use it on my site 2nd link)
All the HTML formatting and input boxes have been remove to prevent this breaking