Update tp.php