Try
if(!file_exists($image_name)) echo "File not found.";
(I.e., is PHP looking where you want it to?)
Then
$size=getimagesize($image_name);
var_dump($size);
I have seen earlier versions of PHP (I forget which; it was a while ago) that weren't able to recognise certain jpegs (from Casio cameras in this case). That's the only other reason I can think of right now for a failure.