readdir -- read entry from directory handle
file=readdir($handler);
will only give me the file name, how can I get the file name with the extension?
Thanks
I got the . file as the first reading, so it does return the extension of the file.
. means current dir .. means one dir up
those two are always the first in a dir or ls command.
it doenst necisserally mean it gives the extention.