add header() function code to sample.php
add readline history