Move PHP functions to my-functions.inc