Updated ground_php_update() to more robust http and error handling.