Page 1 of 1

I need to CURRUPT

Posted: Wed Mar 03, 2004 1:24 pm
by AdamC
Hi,

Anyone know of a way I can currupt the contents of files in a folder? I know its a strange request but here's what I want it for. My PHP scripts require the user to have a valid licence, if a licence is not valid I want the script to screw up basically.

Any Ideas?

Posted: Wed Mar 03, 2004 1:48 pm
by Roja
All the user would have to do is set the file to read-only (or on unix, remove the write bit).

Sounds like a bad protection system to me. If you really want to be THAT controlling, simply put a if/then check for the correct code, and then encode the whole script with something like the zend encoder - preventing them from changing the file or even seeing your code.

Posted: Wed Mar 03, 2004 2:50 pm
by patrikG
Alternatively, you could simply chmod the directory in question so the public does not have access. That way, the files' content stays valid and you give your customers a chance to re-new their license.

Of course, this is only works if it you application is sitting on a server.