I may be doing something horribly wrong, so that's why I want to ask this question.
{
    $pic = channelart.png;
    $pic_loc = $_FILES['pic']['tmp_name'];
    mkdir($userRow['user'], 0777, true);
    $folder="/.$userRow['user']";
    if(move_uploaded_file($pic_loc,$folder.$pic))
    {
        ?><script>alert('Successfully updated channel art.');</script><?php
    }
    else
    {
        ?><script>alert('Failed to update channel banner.');</script><?php
    }
}
I got this error:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/video10p/public_html/labs/au/index.php on line 7
 
     
    