I'm using the getimagesize() function in PHP and it keeps returning an error:
getimagesize(image.php?name=username&pic=picture) [function.getimagesize]: failed to open stream: No such file or directory
I'm not doing anything strange with it. The only problem I can imagine is that the path URL is another PHP script that returns a page with an image header, and there is an ampersand in that URL.
Here is my code:
$location = "image.php?name=username&pic=picture";
$size = getimagesize($location);