RE: [PHP] Patterns
| From: | Jay Blanchard | Date: | Thu, 07 Jun 2007 16:20:17 +0000 |
| Subject: | RE: [PHP] Patterns | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256294@lists.php.net to get a copy of this message | ||
[snip]
> Is there any way to do this?
<?
$extension =
str_replace('.','',strtolower(strrchr('installer.php',".")));
if($extension == "php") {
// Do your unlink() routine for PHP here.
} elseif(strstr($extension,"htm")) {
// Do your unlink() routine for .htm/.html files here.... will
also do .phtml, etc.
}
?>
[/snip]
Damn! I sure miss the good old days when I could have answered "yes".
8^{)}