php ganerate name file upload code example Example: create unique filename php $filename = uniqid(rand(), true) . '.pdf';