$_SERVER['SCRIPT_NAME']: /test/downloads/ch04/scriptname1.php
basename($_SERVER['SCRIPT_NAME']): scriptname1.php