simple license system


/ Published in: PHP
Save to your folder(s)

A very very simple license system


Copy this code and paste it in your HTML
  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

You need to login to post a comment.