http://cl.php.net/manual/en/history.php.php