Hi,
Currently, infront of the name of files uploaded onto my site I put a time stamp (time()). Sometimes the time stamp is up to 10 digits out compared to the link meaning sometimes they don't work and I have to change the name of the file to make it work.
Is there anything better than time() I can use that will avoid this problem please?
[Edit]
Also, I put a time stamp in to avoid people uploading a file named the same as another file, as this would overwrite the other file.
Thanks
Craig.
Currently, infront of the name of files uploaded onto my site I put a time stamp (time()). Sometimes the time stamp is up to 10 digits out compared to the link meaning sometimes they don't work and I have to change the name of the file to make it work.
Is there anything better than time() I can use that will avoid this problem please?
[Edit]
Also, I put a time stamp in to avoid people uploading a file named the same as another file, as this would overwrite the other file.
Thanks
Craig.