stupid php and shell scripts to do stupid things