PHP interesse |
|
<?php
function IsFile($file, $thi, $pltb)
{
$ext = file("$pltb");
echo $pltb ." ". $ext . "<br />";
if(empty($thi)) {
foreach ($ext as $val)
{
if (strpos($file, $val))
return true;
}
}
elseif(empty($file)) {
foreach ($ext as $val)
{
if (strpos($thi, $val))
return true;
}
}
return false;
}
?>
<?php function IsFile($file, $thi, $pltb) { echo $pltb ." ". $ext . "<br />"; foreach ($ext as $val) { return true; } } foreach ($ext as $val) { return true; } } return false; } ?>
Gebruik ik... Uiteraard moet je wel een paar kleine dingetjes aanpassen... |