Help a newbie

A

Anonymous

Guest
¬_¬ are you sure you want to do that? that makes it easy for hackers to upload scripts to your site and have your server run them to give them any information they want
 
well i think you should use chmod 0757 as its the most optimal one.. however i would also make some security checks if i where you.
 
Hi,

I agree... be careful with security... anyway, if you want to allow all file types i guess that removing the following part of the script:

else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS) ) $message = "Sorry, $file_name($file_type) is not allowed to be uploaded.";

will be enough.

Regards.
 
Back
Top