-
- 6 Posts
I've had a play with the upload snippet and added this code,
//Handle the uploaded file
$uploadfile = $path.basename($_FILES['userfile']['name'][$i]);
$nametemp = pathinfo($uploadfile);
$justname = $nametemp['filename'];
$justname .= time();
$extemp = pathinfo($uploadfile);
$repex = $extemp['extension'];
$uploadfile = $path.$justname.'.'.$repex;
It works but I'm sure there must be a "nicer" solution. Any suggestions?
:-)