Re: $type ["extension"];
Hm, Guys :))
maybe $filename doesn't have an extension?
pathinfo cretes only things that can be found...
<?php
$type=pathinfo($filename);
if ( isset($type['extension']) ) {
//extension set
}
else {
// extension not set
}
?>
or whatever...
|