Hello, my script doesn't seem to want to work correctly. I have a form where a user can put in an url to link an avatar to my site. I wanted to check the dimensions, if it's greater then 100x100, then resize it. Here's what I have:
$size = getimagesize($avatar['avatar']);
if($size[0] > "100" || $size[1] > "100") {
echo "' alt='' class='bigav' /></p>";
$over = "1";
}
else {
echo "' alt='' /></p>";
}
$avatar['avatar'] is the way I get the url from the database. I tried to echo the $size[0] and [1] to see how the dimensions are shown, but it didn't echo anything. So I'm guessing the getimagesize() is wrong somehow. Any help would greatly be appreciated!
Thank You! 🙂