note 52385 deleted from function.preg-match by mazzanet
| From: | mazzanet@php.net | Date: | Sat, 17 Sep 2005 11:28:58 +0000 |
| Subject: | note 52385 deleted from function.preg-match by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95330@lists.php.net to get a copy of this message | ||
Note Submitter: DKing
----
This works perfectly for seeing if someone is using your copyright in their files! You could make
the code and then do something like:
<?php
if( !(preg_match("<copyright stuff here>", "file.php") )
{
die("You have not retained the full copyright! Please restore it as seen below!<BR
/><BR /><copyright stuff here>");
}
?>
And then it would block them from doing anything until:
(1: They put it back in
-or-
(2: They remove the above lines of code! :P