Currently if a user POST/uploads a photo to my PHP script I start out with some code like this
getimagesize($_FILES[\'picture1\'][\'tmp_name\']);
Not sure if this will help, but I ran into a similar issue and it turned out the firewall controlled by my host was blocking outgoing http connection from my server.
They changed the firewall settings. My code then worked.
BTW: I thought this might have been an issue when I tried file_get_contents() on a number of urls, none of which worked!