If you are getting following error trying to get image size on your own server, you need to provide local directory path rather than website url.
PHP Warning: function.getimagesize: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
Solution
Get the path of your script and then use this path in the getimagesize function
define('ROOT_PATH', dirname(__FILE__));
$path = ROOT_PATH.'/images/your-image.jpg';
list($width, $height) = getimagesize($path);
Hope that helps.