Priority of a php page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aaaphp000000
Forum Newbie
Posts: 22
Joined: Mon Aug 29, 2005 5:39 am

Priority of a php page

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
aaaphp000000
Forum Newbie
Posts: 22
Joined: Mon Aug 29, 2005 5:39 am

Post 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.
Post Reply