I have written a licensing system for my script and now i saved it an file called lic.php in the root folder I am going to encrypt that with ioncube when giving to a client side and i will simply include include "lic.php" PHP: to call the licensing system But the problem is when i simply include the code include "lic.php" PHP: the user can directly remove the line to get the script worked So can some one help me in coding a script inside the lic.php which will make the script to prevent from running if the code i.e, include "lic.php" PHP: is removed from the file Note that i will include the line include "lic.php" PHP: in all the php files in my script Also do you face any issues with ioncube while running?? Great Thanks!
Put your some of your core classes/functions within lic.php, then if it's removed the script will no longer function.
That's not possible since my core will be updated very soon So continuous encryption with ioncube costs a nice amount $$ Any alternative suggestions for it??
But you will retain the php functions at your end, so if you change them, they wouldn't need to be encrypted ? Just on a side note, you would also only need to place the include instructions in the config file assuming each php file already requires the config file. ?
Umm... That's not possible as is said i periodically add new php variables to my script in config.php as you said Is there any other way that it can check whether the lic.php file is in the php file or not?? Thanks
Surely there are some crucial elements that remain constant though? Why not encrypt those along with your include, and then include the rest of the content which you regularly change?
Thats well!!! But i can't say that those constant elements will be used in every pas of the script Also if it's constant once an a PHP Guys smells that he can easily add that in any page where the constant is require or used
OK, why not encode all the php code? Separate your templates from your php code, then when you do a release you just run it through the encoder. The user can still mod the template as it's not encoded however they can't play around with the code. Far more secure that way.
Ah I see - are you using the $0.50 per job option on their website? You'd be far better buying the application, then you can encode an unlimited amount of times with no extra cost.
Yep! But as i said that if that product fails in the market then it will be loss of money! So any other function or options in php that can do the job
Simply insert the core functionality of the script as a function then place that function within the ioncube'd file (lic.php), then if the included file is removed the script won't function. Example Usage: lic.php (needs to be encoded): <?php function content(){ //if neccesary connect to your server etc... echo "your content goes here..."; } ?> PHP: other.php (other non-encoded files...): <?php include "lic.php"; content(); ?> PHP: