Php de dosya uzantısı bulma
<?php
getFileExt($fileName)
{
return substr(strtolower(strrchr($fileName,'.')),1);
}
$dosya = 'nurettin.class.php.tar.gz';
if (getFileExt($dosya) == 'gz')
{
echo "dosya uzantısı gz";
}
else
{
echo "dosya uzantısı gz degil";
}
?>


02. Haz, 2010







Henüz Yorum yazılmamış... İlk Yorumu siz yazabilirsiniz!