More PHP functions and a little GUI