I have a folder "upload" here i have some PDF files, i can upload a file to the folder and the files is getting the upload date as name, so i file uploaded today will have the name "20111207.pdf"
I need to make a link that only link to the newest PDF file.
So i dont need to changes the link when i have uploadet a PDF file, but so i only need to upload the pdf with the date and then a script will find the file with the biggest number and show that as a link.
How can i do that !?
i god these files in the folder.
then i need a script that can look after the highest number (in this case 20120101)
and then make a link to that file as <a href="upload/20120101.pdf">Hent Prisliste</a>
and if i upload a new pdf file with at bigger number then 20120101 then it vil show that link, to the file.
Hope u understand what im looking for.