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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
php × 2059object-oriented × 262
mysql × 199
design-patterns × 190
web-development × 140
mvc × 139
javascript × 108
design × 98
database × 77
laravel × 72
web-applications × 68
architecture × 56
java × 50
frameworks × 49
object-oriented-design × 48
security × 47
unit-testing × 46
api × 46
html × 45
programming-practices × 41
dependency-injection × 41
python × 37
ajax × 37
rest × 35
sql × 35