Jump to content

MIME & Special Files Allowing and Denying others


Ziph

Recommended Posts

I have this filetype .rep its a application/replay

 

i added it to my mime list on my webhost.

 

but when i try

 

echo mime_content_type('Ziph/LastReplay.rep'); it gives me this error Fatal error: Call to undefined function mime_content_type()

 

is there anyway to read the file i upload and check if its a application/replay (.rep) and print this i have been trying all day and failed.

 

code

$fileinfo = mime_content_type($_FILES['userfile']['tmp_name']);

 

if($fileinfo['mime'] != 'application/replay')  {

        echo "File type: $fileinfo";

echo mime_content_type('Ziph/LastReplay.rep');

    exit;

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.