from a program response the .php of course needs to be there that is the file name of the program your running on the server. Say if you have this file on your server
http://www.mysite.com/whatsup.html
Your never going to be able to go here and bring up that page
http://www.mysite.com/whatsup
You must always type the filename