$oldname = ['tmp_name']; $newname = $_SESSION['username']; '.' + $imageFileType if (rename($oldname, $newname)) { // syntax error, unexpected T_IF $message = sprintf( '', $oldname, $newname ); } else { $message = sprintf( '', $oldname ); }
if (rename($oldname, $newname)) { has syntax error unexpected T_IF What I have tried: searching from stackoverflow and adding stuff and then removing
$oldname = ['tmp_name']; $newname = $_SESSION['username']; '.' + $imageFileType // What about a ';' at the end of this line ? if (rename($oldname, $newname)) { $message = sprintf( '', $oldname, $newname ); } else { $message = sprintf( '', $oldname ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)