Greetings, I\'m hoping to make my tiny program secure so that potential malicious users cannot view sensitive files on the server.
$path = \"/home/gsmcm
Use basename rather than trying to anticipate all the insecure paths a user could provide.