PHP problem with getimagesize()

Posted by RobHardgood on Stack Overflow See other posts from Stack Overflow or by RobHardgood
Published on 2010-03-12T04:16:22Z Indexed on 2010/03/12 4:17 UTC
Read the original article Hit count: 216

Filed under:
|
|

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);

© Stack Overflow or respective owner

Related posts about php

Related posts about getimagesize