Resolve function.getimagesize: failed to open stream: 403 Forbidden Error

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 ForbiddenPHP Warning: function.getimagesize: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden Solution Get the path…