Including Functions & Classes

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
ThePCNerd
Forum Newbie
Posts: 6
Joined: Wed Oct 13, 2004 10:38 pm

Including Functions & Classes

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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]
ThePCNerd
Forum Newbie
Posts: 6
Joined: Wed Oct 13, 2004 10:38 pm

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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?
ThePCNerd
Forum Newbie
Posts: 6
Joined: Wed Oct 13, 2004 10:38 pm

Post by ThePCNerd »

Variables and output from the included file on my website.
Post Reply