Page 1 of 1

Including Functions & Classes

Posted: Wed Oct 13, 2004 10:43 pm
by ThePCNerd
I am looking to distribute a peice of code I made via include.

My code will check for the client's id number and allow them to use the class, or die.

Now I was wondering what kind of security risks are there for licensing in this manner(via remote include with all code on my server)

I am using php5 so there is no longer a class variables all being public.

Anyone have any experience with classes and include?

Posted: Thu Oct 14, 2004 3:25 am
by timvw
From the manual:
The include() statement includes and evaluates the specified file.

Thus if i understand right, it will download the source, and then evaluate it. Now if i just use a download client, i can download the source and remove the lines where you check for a valid userid...

[/url]

Posted: Thu Oct 14, 2004 2:18 pm
by ThePCNerd
The code is evaluated remotely, the file including my script sends its variables to me then I process and return/print whatever was evaluated.

Posted: Fri Oct 15, 2004 12:39 pm
by Weirdan
ThePCNerd wrote:The code is evaluated remotely, the file including my script sends its variables to me then I process and return/print whatever was evaluated.
what is sent to the client then?

Posted: Fri Oct 15, 2004 4:02 pm
by ThePCNerd
Variables and output from the included file on my website.