jeudi 8 décembre 2016

using rand and the File superglobal php ?

       $file = rand(1000,100000)."-".$_FILES['file']['name'];

i saw they above piece of code in a tutorial and am unsure of what exactly it is doing ? I think it is pre-fixing a random number to the file name ?




Aucun commentaire:

Enregistrer un commentaire