Skip to main content
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
1 vote

How to namespace global function overrides?

One may question the utility of such function in the first place, with several aspects to take into account: Discoverability. That is, how I, working on your project, am expected to know that ...
Arseni Mourzenko's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible