I've got a form which allows a user to submit a URL for a image, some users have website links etc instead who are not IT savvy, how can I check a image in correct? I thought checking the URL to see if it ends ,jpg etc?
any ideas?
You can try reading the resource named in the URL and see if [man]getimagesize[/man] understands it. You don't need to read it all (in case it turns out to be huge); the first 10kB or so should be enough.