I have a customer that would like to use one of my scripts for a trial period what would be the easiest way of coding the script to set an expiration date? I can encode the script so that he cannot modify dates and such...so it doesnt matter how simple the code is....any help would be appreciated.
Base64 encode the script, salt it. Then use PHP to de-salt, decode and run the decrypted code through eval().
I'd suggest use ionCube or Zend to time encode it. Another option is, use the code on your own server, and have his script call your server. So in his file you would have <?php . .. ... .... .....more php include("http://www.mysite.com/trial.php"); ..... .... ... .. .. ?> And then encode the file as you wish. This way the script still calls your server anyhow for the time.
and even more - you can store the date on your own server and check it every time user use cms (not on every page)