I have this very simple form. It's for people who want to give their selves a "profile picture" on my website. No upload, just put the url of your image and click save. So, it's just a "url".
This is my current code
<?PHP
if(is_array(getimagesize($_POST['profilepicture']))&&filter_var($_POST['profilepicture'], FILTER_VALIDATE_URL,FILTER_FLAG_SCHEME_REQUIRED)){
echo "Good";
} else {
echo "Bad";
}
?>
I have tried everything. I've tried just getimagesize() and it doesn't work. This works on my localhost via wamp, but fails on my host. Do I have to have something in my php.ini changed?
Thanks so much.