Skip to main content

New answers tagged

2 votes

Best way to assure uniqueness in filename with php

You can use tempnam(). It generates a filename that is guaranteed to be unique and not used in a given directory. It is atomic and so is free of any race conditions.
John Page's user avatar

Top 50 recent answers are included