Jump to content

[SOLVED] getimagesize error


brem13

Recommended Posts

hey, i get this error 'getimagesize(0) [function.getimagesize]: failed to open stream: '

 

here is my code


$folder = "galleries/members/$userup/$album";
$pic = htmlspecialchars($_GET['pic']);
$album = htmlspecialchars(strtoupper($_GET['album']));
$userup = htmlspecialchars(strtoupper($userlow));
list($width, $height) = getimagesize($folder/$pic);
if($width > 600)
{
echo "<a href=\"$folder/$pic><img src=\"$folder/thumbs/$pic width=50%\">";
}

any thoughts?

 

 

Link to comment
https://forums.phpfreaks.com/topic/152710-solved-getimagesize-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.