1
neda_barna
mime_content_type
  • 2008/4/12 4:49

  • neda_barna

  • Just popping in

  • Posts: 63

  • Since: 2007/9/5 4


please tell me my problem
le="color: #000000"><?php $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()

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits