PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
if (file_exists($userfile_name)) {
echo "Error - The $userfile (name) already exists. Please change the name of this file to something else and try again.";
}
else (move_uploaded_file($userfile, $add)) {
echo "File uploaded, thankyou";
}
if (file_exists($userfile_name)) {
echo "Error - Filename already exists. Please change the name of this file to something else and try again.";
}
else {
(move_uploaded_file($userfile, $add));
echo "File uploaded, thankyou";
}