seahorse123
Programmer
I have file uploaded to the server by using move_uploaded_file(), the uploaded files have the different file type(extension name like jpg, gif, pdf...)
Now I want to retrieve these files and have it linked from the webpage, I already have the file name, the problem is how the script knows the file extension in order to link it correctly, for example <a href="abc.jpg">, I already have file name "abc", but how the script detects ".jpg", as the hyperlink <a href="abc"> will not work.
Now I want to retrieve these files and have it linked from the webpage, I already have the file name, the problem is how the script knows the file extension in order to link it correctly, for example <a href="abc.jpg">, I already have file name "abc", but how the script detects ".jpg", as the hyperlink <a href="abc"> will not work.