Nome do arquivo randon php
$filename = uniqid(rand(), true) . '.pdf';
SteezCram
$filename = uniqid(rand(), true) . '.pdf';
function random_string($length) {
$key = '';
$keys = array_merge(range(0, 9), range('a', 'z'));
for ($i = 0; $i < $length; $i++) {
$key .= $keys[array_rand($keys)];
}
return $key;
}
//
echo random_string(50);