hi,
im, currently working on a mutilmedia hosting script and we only allow certain file types jpg,gif,png for example what i want to know is should i rely on $_FILES['file']['type'] to determine the filetype or should i go with strripos() and rely on the file extension?
i was concerned about going the file extension way simply because it doesnt take much to change a file extension.
any feedback on this would be appreciated.
thanks