I checked this Links..
Protect folder with password fails on localhost (under Apache and Windows)
in this the solution is to execute the project using a password but i only want to protect php program folder from direct access.
I don't want password authentication while php program execution.