I've been working with a file upload script written in PHP. But I can't find any documentation on the "or error()" function used.
Is this a php error function? Or a function of the file handling library? Trying to find documentation so I can make the necessary changes, and I am not coming up with anything in the PHP documentation.
Here is the relevant code segment:
$errors = array(1 => 'php.ini max file size exceeded',
2 => 'html form max file size exceeded',
3 => 'file upload was only partial',
4 => 'no file was attached');
($_FILES[$fieldname]['error'] == 0) or error($errors[$_FILES[$fieldname]['error']], $uploadForm);
@is_uploaded_file($_FILES[$fieldname]['tmp_name'])
or error('not an HTTP upload', $uploadForm);
orin PHP. it is represented with||while&&forand. i do believe those should be inside an if statement.or.