1
please tell me my problem
$upload_path = REF_UPLOAD_DIR2;
//$magic_mime_path = '/usr/share/file/magic';
$mime_types_allowed = array( 'application/msword' );
if (!function_exists('mime_content_type ')) {
function mime_content_type($filename) {
$finfo = finfo_open(FILEINFO_MIME);
$mimetype = finfo_file($finfo, $filename);
finfo_close($finfo);
return $mimetype;
}
if (@$_FILES['fulltext']['name']) {
$mimetype = mime_content_type($_FILES['fulltext']['tmp_name']);
echo $mimetype;
if (!(in_array($mimetype, $mime_types_allowed))) {
redirect_header ( REFER_URL."/track-accept.php?sid=".$sid, 4, _REF_INVALID_FILETYPE );
}
}
my error is :
Cannot redeclare mime_content_type()