add PHP version of update script