The function returns TRUE or FALSE; you can assign it to a variable and check it:
PHP Code:
$moveResult = move_uploaded_file();
if (!$moveResult)
{
echo "ERROR";
}
Or just shortcut and check it directly:
PHP Code:
if (!move_uploaded_file())
{
echo "ERROR";
}