updates to phpfunctions