Page 1 of 1

Priority of a php page

Posted: Tue Sep 20, 2005 4:52 pm
by aaaphp000000
I upload a php page and a java applet to my host.

the applet tag is
<APPLET codebase="/java/mytest" ......

the php page is in different directory from the applet.

the page and the applet are running well.

Now I change priority of directory "/java/mytest" to:
user=ALL (R-W-E)
others=none

this time, page is viewed but applet can not be loaded on the page.

Question:
the page is inside my host, I think its priority should equal to "User", but actually (as test result) it works as "Others".

could you explain why?

my purpose is to find a method to prevent the applet from beening downloaded by visitors - it contains securities of our company (class file can be de-compiled).

thanks

Posted: Tue Sep 20, 2005 4:59 pm
by feyd
user is the server's owner of the file, other is anyone else pages are typically accessed via the user the webserver runs, which is very often not the user that owns the file.

Posted: Wed Sep 21, 2005 3:32 am
by aaaphp000000
not really.

a php page inside host should have same priorities as "user".

lets think about mysql database: if the page is inside host, the page is owner of "localhost": so it is local file.

a local file should have right to access more than files out of the host.

very strange.