I have a directory into which I upload pictures. I know the
entire file name other than the extension.
file_exists will return true when I give it a wildcard extension,
but I can't figure out the best way to determine the extension
for fopen.
I sure don't want to troll through the entire directory with
readdir.
I would appreciate suggestions.
bill
entire file name other than the extension.
file_exists will return true when I give it a wildcard extension,
but I can't figure out the best way to determine the extension
for fopen.
I sure don't want to troll through the entire directory with
readdir.
I would appreciate suggestions.
bill
Comment