Hi I have this function below - if it reurns false I want to also return the error so I can print it in my calling function. Can I do this?
Cheers
Matt
function fileUpload($file) {
if ($file['type'] == "image/gif" || $file['type'] == "image/pjpeg"){
if (@copy ($file['tmp_name'], "images/" . $file['name']))
return true;
}else {
return false;
}
}

