RE: Patterns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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^{)}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux