The instructions are in the code
/*
First make a file called 'upload.htm'
put the following code in it
*/
<html>
<body>
</body>
</html>
/*
Then, make a file called 'Upload.php'
and put the following code in that
*/
/*
Upload the two pages to your site, and go to the 'Upload.php'
You can edit this code any way you like, just remember to give credits to me!!
*/
It\'s not always a good idea to rely on $_FILES[][\'type\'] because this is simply the MIME type the client browser has given. This can potentially be faked by a client and browsers can also report the incorrect MIME type or give a generic MIME type.
You can use the getimagesize() function to get the MIME type of an image:
list($x,$x,$mime_type) = getimagesize($_FILES[\'files\'][\'tmp_name\']);
if ($mime_type == \'image/jpeg\' || $mime_type == \'image/gif\' || $mime_type == \'image/png\') {
....