Page 2 of 2

Posted: Wed Dec 05, 2007 5:48 am
by volka
JellyFish wrote:I don't know how to check the error reporting.
You can edit your php.ini or add the line

Code: Select all

error_reporting(E_ALL);
to your script.
It would have told you about the missing $

Posted: Wed Dec 05, 2007 6:39 am
by Rovas
I upload the image first, then run the resize script because I use the original as a larger version .

Code: Select all

//takes the name of the uploaded file
$filename=uploaded_file();
$path="/images/large/"';
$file=$path .$filename;
imgInfo=getimagesize($file);
if(imgInfo[2]==IMAGE_TYPE_JPEG) {imagecreatefromjpg($file);}
//and the rest
Another programmers do it "on the fly" like you want but I haven' t reached that level :(