I'm trying to make it so my users can have an avatar, they aren't going to be uploading the image to my server. They'll just link to an image on their own server.
But I still want to verify that the URL they put in the text field is actually an image.
I've been searching and I believe I need to use getimagesize() to get the image type???
Is that correct?
So if I were to get the image from the URL the user supplied would it be something like this?
Code: Select all
if(isset($_POST['change']))
{
$change = getimagesize($_POST['change']);
}
I've been reading this page, but most of it doesn't make any sense
http://us.php.net/manual/en/function.im ... ension.php
Thanks
Chris.