PDA

View Full Version : Server setting or permissions issue with getimagesize function not working properly


siliconfinance
09-02-2008, 06:44 PM
EDIT: Mods feel free to move this to the server subforum if that is where its supposed to be.

Ok, well I am here because my host (I have a dedicated/unmanaged server) says I need to update something with respect to Apache to fix my problem and I am clueless about what to do.

Basically, I get this error:

Warning: getimagesize(url edited out) [function.getimagesize (http://www.rs25.com/forums/function.getimagesize)]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in [path]/path to file edited out on line 51I thought it was a permissions issue because I get a 403 error if I try to navigate to the image by pasting the URL into my browser. However, when I am logged into the password protected admincp and click a link to the same image from within the admin panel, I don't the 403 error.

Can anybody help and shed some light on this? or share any thoughts?

Opserty
09-02-2008, 06:59 PM
Seems to be related to the Image Processing (GD) (http://uk2.php.net/manual/en/book.image.php) functions. I can't offer much more help beyond that, maybe someone with a little more experience can give you more help. :)

MoT3rror
09-03-2008, 05:07 AM
The server doesn't know the username and password to a password protected directory so you get a 403 (or no access) if it is connecting by HTTP.