Posted By

fackz on 04/02/09


Tagged

license sysem


Versions (?)

Who likes this?

11 people have marked this snippet as a favorite

nkrstevski
VaiT
irishsk
fackz
jcroom
BrianCoyDesign
ninjacharlee
userpiv
Kurt
ringo380
clacwebstudio


simple license system


 / Published in: PHP
 

A very very simple license system

  1. <?php
  2.  
  3. $fp = fopen("http://domain.com/lic.txt", "r");
  4. $license = fread($fp, filesize($filename));
  5. fclose($fp);
  6.  
  7. if ($license == "1234567") {
  8.  
  9. echo "Your license key is valid";
  10.  
  11. } else {
  12.  
  13. die("Invalid license key");
  14. }
  15. ?>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: johnskopa on October 27, 2009

It's a good try but too easy to break it :/

You need to login to post a comment.