Too easy...the client would just have to check the code for it and he would have the code.
Better get a md5'd version of the code from somewhere in the net (from your server for example) and compare it to the md5'd version of the code the client put in. But that way the client could always just comment out the if condition. Hmm..maybe you can obfuscate that somehow...but I've no idea if that's possible in php...? > -----Original Message----- > From: Jay Blanchard [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 1:41 PM > To: 'PHPCoder'; 'php-general' > Subject: RE: [PHP] Self Destruct code > > > [snip] > I have a funny request; I wrote a system for a client and am rather > concerned that I am not going to receive payment for the work > done. They > want me to hand over the code before they are willing to pay, so > basically I will be left at their mercy; if they don't pay, they will > still have a working version of the system... > So, is there any way I can inconspicuously code in some boo-boo's that > are time related etc. Something that will bomb the mysql > tables or break > some code if it is not "unlocked" within a month etc. > I'm not sure if people out tjere might have existing safeguard tools > etc, so I'm open for suggestions. > [/snip] > > You could try something like this; > > if(date == '30 days from now'){ > if(unlock code <> 'the unlock code'){ > Do stuff to disable code, set variables > to odd values, drop tables, > whatever; > Do stuff to send e-mail to offending party; > } > } > > HTH! > > Jay 'Been There, Has to Do That' Blanchard > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.330 / Virus Database: 184 - Release Date: 28.02.2002 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 28.02.2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php