random php scripts that I've used at some point