okay,
i tried replacing $HTTP_POST_FILES with $_POST but no luck. same error
i am worried now...
the code now is looking like:
$resized = imagecreatetruecolor(450, 450);
if($_POST['userfile']['type'] == 'image/png')
$original = imagecreatefrompng($_POST['userfile']['tmp_name']);
if($_POST['userfile']['type'] == 'image/jpg' || $_POST['userfile']['type'] == 'image/jpeg' || $_POST['userfile']['type'] == 'image/pjpeg')
$original = imagecreatefromjpeg($_POST['userfile']['tmp_name']);
if($_POST['userfile']['type'] == 'image/gif')
$original = imagecreatefromgif($_POST['userfile']['tmp_name']);
if($_POST['userfile']['type'] == 'image/bmp')
$original = imagecreatefromwbmp($_POST['userfile']['tmp_name']);
imagecopyresampled($resized, $original, 0, 0, 0, 0, $nwidth, $nheight, $owidth, $oheight);
please help. ???