RE: [PHP] Properly formatted ereg??
| From: | Jason Murray | Date: | Wed, 11 Apr 2001 04:22:35 +0000 |
| Subject: | RE: [PHP] Properly formatted ereg?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48115@lists.php.net to get a copy of this message | ||
> ereg("^/anythinghere/coverage/anthythinghere.html?", $PHP_SELF
> ||||||||||||||||||||||||||
> |||||||||||||||||||||||||||||||||||||||
>
> So basically it is looking for the "/coverage/" folder,
> anything can come before it, and anything after it??
if (strstr($PHP_SELF, "/coverage/"))
{
echo "Got it";
}
else
{
die(); // ;)
}
Jason