maharamDan
IS-IT--Management
Hello this might be a simple question.
I have 4 MIME I want to check during an upload script.
Application/PDF
Application/MSWORD
Applicatoin/MSEXCEL
plain/text
How would I incorporate this in one statement.
Should I do an if else type thing?
Right now I have:
if ($userfile_type != "application/msword")
{
echo "Problem: file is not a word document";
exit;
}
Anyway I could put .doc, .pdf , .txt ,.xls in an array or something?
Thanks in advance.
Dan
I have 4 MIME I want to check during an upload script.
Application/PDF
Application/MSWORD
Applicatoin/MSEXCEL
plain/text
How would I incorporate this in one statement.
Should I do an if else type thing?
Right now I have:
if ($userfile_type != "application/msword")
{
echo "Problem: file is not a word document";
exit;
}
Anyway I could put .doc, .pdf , .txt ,.xls in an array or something?
Thanks in advance.
Dan