Does changing an uploaded executable’s file extension to .png render it safe?

A colleague of mine has a personal website in which he allows users to upload anything within a certain size,

but before the actual upload he checks to see the file extension:

if ( $type == ‘image/gif’){
$ext = ‘.gif’;
}… Continue reading Does changing an uploaded executable’s file extension to .png render it safe?