Getimagesize() on Localhost

There is issues with getimagesize() when the image is on Localhost.However, if you parse the "http://server-address"