$up['maxSize']) { echo 'file size to big'; }elseif(!isImg($data)) { echo 'please add true image '; }else{ file_put_contents($up['path'], $data); echo 'create image done'; echo ''; } } } ?>