Update document.php