I have recieved the following Parse Error and have not been able to find the problem. Here is the error and the code. Thank You
Parse error: parse error, unexpected ';' in /homepages/26/d222204041/htdocs/GFO/test_mail/upload.php on line 14
<?php
if ($SERVER['REQUEST METHOD']=='POST'){
//check for uploaded file
if (is_uploaded_file($_FILES["media"] ["test_mail/upload"])){
//chops off any leading directories ('../../'.etc)
$filename=basename($_FILES["media"] ["name"]);
//gets the file extension
$fileExtension=strlower(array_pop(explode(".",$filename)));
if ($fileExtension !='jpg'
&& $fileExtension !='jpeg'){
print 'Only JPEG files allowed';
} else {
//the file is a jpeg as requested
if (!@copy($_FILES ["media"] ["test_mail/upload"];
$_SERVER ['DOCUMENT_ROOT'].'/uploaded_images/'.$filename));
{
print 'There was an error. Please try agaib.<br>';
}else{
print 'Your file was uploaded.<br>';
}
}
}
}
?>