WordPress.org

Support

Support » Plugins and Hacks » Hacks » getimagesize cant get to the upload folder

getimagesize cant get to the upload folder

  • in my plugin i have a call to getimagesize with an image in the uploads folder as argument. when i put the link to the argument directly in my browser the image appears. however the function gives the following error:

    failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in

    anyone knows how i can fix this?

Viewing 1 replies (of 1 total)
  • Are you sure the URL of the image (the argument) is complete, with http:// etc? Browsers will add missing parts to a certain extend while the getimagesize function does not.

    Another alternative and even better way would be to use the (full) image path instead of a URL.

Viewing 1 replies (of 1 total)
  • The topic ‘getimagesize cant get to the upload folder’ is closed to new replies.
Skip to toolbar