added a php functions file