note 86127 deleted from function.strrpos by danbrown
| From: | danbrown@php.net | Date: | Sat, 04 Oct 2008 15:50:36 +0000 |
| Subject: | note 86127 deleted from function.strrpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145051@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at webb3 dot net
Reason: spam
----
Checking if our file is named for example filename.php:
function check_get($filename) {
$xp1 = strrpos($_SERVER["REQUEST_URI"], $filename);
if ($xp1 === false) {
return false;
} else {
return true;
}
}
Thanks to http://blogs.webb3.net/ and http://www.webb3.net/ for this function.