Ziph Posted September 24, 2008 Share Posted September 24, 2008 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; } Link to comment https://forums.phpfreaks.com/topic/125694-mime-special-files-allowing-and-denying-others/ Share on other sites More sharing options...
rarebit Posted September 24, 2008 Share Posted September 24, 2008 see the warning here Link to comment https://forums.phpfreaks.com/topic/125694-mime-special-files-allowing-and-denying-others/#findComment-649949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.