thesquirrel16
06-21-2007, 03:09 PM
Hi i am running off of a windows NT server. I cannot get some of my code to work properly. I am trying to resize pictures as they are uploaded.
This is the line that does not work for me:
list($width, $height, $type, $attr) = getimagesize("$file_name");
the variables show to be empty, and file is the name of the open text box. Am I doing something wrong here? The error thrown is:
Warning: getimagesize(IMG_1543.jpg) [function.getimagesize]: failed to create stream: No such file or directory in c:\websites\jgcustomhomes71\jgcustomhomes.com\new\picupload.php on line 94
Also this line is not working
$thepicture = getimagesize("$add"); where $add is the image copied over to the server from $file, $thepicture comes up blank
This is the line that does not work for me:
list($width, $height, $type, $attr) = getimagesize("$file_name");
the variables show to be empty, and file is the name of the open text box. Am I doing something wrong here? The error thrown is:
Warning: getimagesize(IMG_1543.jpg) [function.getimagesize]: failed to create stream: No such file or directory in c:\websites\jgcustomhomes71\jgcustomhomes.com\new\picupload.php on line 94
Also this line is not working
$thepicture = getimagesize("$add"); where $add is the image copied over to the server from $file, $thepicture comes up blank