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
$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=".$sid4_REF_INVALID_FILETYPE );
    }

}


my error is :
Cannot redeclare mime_content_type()

Login

Who's Online

138 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits