- Original Message -
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
> > I can\ only assume that it does work ok with a linux-based
> > webserver or it wouldn't be in there. In fact, if I put in is_file()
> > instead of !is_dir, it returns nothing at all.
>
> That code wont work on a un
> I can\ only assume that it does work ok with a linux-based
> webserver or it wouldn't be in there. In fact, if I put in is_file()
> instead of !is_dir, it returns nothing at all.
That code wont work on a unix based system since in many cases
files does not have an exstensions at all, like exec
This will work, with several caveats since the purpose is not known...
read())
{
if (!is_dir($filename))
{
clearstatcache();
$extension = substr($filename,-4);
$realext = strstr($extension, ".");
if ($realext <> "")
{
echo $realext."\n";
}
}
}
$dir->close();
?>
Hey,
I need to be able to find out what the file ext is on all files within the
dir i am reading. I am searched the php manual and i can not find anything
that does this does anyone know of a way i can and print it out.
Thanks
Dean "The Insane Guy" Hayes
Mystical Web Designs
http://www.mystica