Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (empty($_FILES['foto']['name']))
- {
- //eksekusi
- }
- else
- {
- $image_info = getimagesize($_FILES["foto"]["tmp_name"]);
- $image_width = $image_info[0];
- $image_height = $image_info[1];
- if (($image_height=='600') and ($image_width=='600'))
- {
- //echo "eksekusi";
- }
- else
- {
- //echo "please check image width and height";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement