QUOTE(wizkid0319 @ Apr 15 2008, 07:33 AM)

my problem is that i have a .JS file in my root folder which is used to do some processing. and if some one get to know the file name he can type the file name and get the source of that file. so i would like to know a way to restrict that. but i cant disable CHMOD gropuaccess read permission. coz then the application stops working as well... pls help....
urgent...
cheers
Please use PHP file as a JavaScript by adding the following header.
header("Content-type: application/x-javascript);
Then write down the actual JavaScript code between PHP here document tags.
PHP can give the unseen JavaScript output to the client side, but the PHP source itself cannot be downloadable.
hence your source code is protected.