Jump to content

So...frustating


guitar idiot

Recommended Posts

Ok look at this$size = GetImageSize ("upload/$user$pic"); Warning: getimagesize(upload/) [function.getimagesize]: failed to open stream: No such file or directory in C:\xampp\htdocs\my\fshowthread.php on line 54I keep getting that, I have tried a billion different ways and nothing works..

Link to comment
Share on other sites

Well, obviously by the error message, you're trying to get the size of the image "upload/", but there is no such image. Since folders are not images, it's clear that getimagesize() would fail.For some reason $user and $pic don't get populated. If you're filling them with a form that uses the POST method, then use $_POST['user'] and $_POST['pic'] to get those values. Otherwise, show the rest of the code you have, so that we could see why don't $user and $pic receive any values. And btw, you should use parenthesis to ensure there are no conflicts, like:

$size = GetImageSize ("upload/{$user}{$pic}");

This will NOT work until you see why are those variables empty.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...