Fatal error: Call to undefined function: do_upload() in /home/fhlinux196/a/askmultimedia.co.uk/user/htdocs/Failsworth/resourcesADD1.php on line 231
This is the function: -
function do_upload($upload_dir, $upload_url) {
$temp_name = $_FILES['userfile']['tmp_name'];
$file_name = $_FILES['userfile']['name'];
$file_type = $_FILES['userfile']['type'];
$file_size = $_FILES['userfile']['size'];
$result = $_FILES['userfile']['error'];
$file_url = $upload_url.$file_name;
$file_path = $upload_dir.$file_name;
This is the lines 230-235: -
if ($_FILES['userfile']) {
$message = do_upload($upload_dir, $upload_url);
}
else {
$message = "Invalid File Specified.";
}
I cant understand why this isnt working as it has worked on other projects, but this one?! The only difference is that im using CSS, which i cant see affecting the upload process?!
Thanks for any help
Ash;)
My new web design domain
www.askmultimedia.co.uk