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
php-windows Digest 27 Sep 2003 09:25:42 - Issue 1930
Topics (messages 21573 through 21579):
page cannot be displayed error
21573 by: Jim
21574 by: Mike Brum
21578 by: Jim
Re: Writing to a file
21575 by: Gerardo Rojas
Testing Email Mpdules on Win2000
>Am I the only one receiving this stuff? Can somebody tell me what the
>(*&^%$ is it? Is it real?
>Forget it, that's an Internet worm like Klez, spreading thanks to
>Microsoft Internet Explorer. I get hundreds of KB of this b..sh.. every
day.
Well, at least it a change from having spam mail fi