I'm having trouble specifically with the getimagesize
function. I'm making the function call from /item/ajax/image.php
relative to the domain's HTTP root. I'm trying to get the dimensions of an image stored at /portfolio/15/image.jpg
. From what I understand, the function takes a filename as an argument, so I tried the following:
getimagesize('/portfolio/15/image.jpg')
And
getimagesize('../../portfolio/15/image.jpg')
But both of them just threw PHP errors.