note 52385 added to function.preg-match
| From: | DKing at osu1 dot php dot net | Date: | Fri, 29 Apr 2005 10:08:40 +0000 |
| Subject: | note 52385 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88740@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52385
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52385&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52385&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52385&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52385&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52385&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52385&report=yes
Search -- http://master.php.net/manage/user-notes.php