php 4.3.1.

I got it working, this is what i had to use:

$imagewidth = getimagesize($_FILES ["image"]["tmp_name"]);

if($imagewidth[0] >= "1042") {
$img_width  = "1024";
} else {
$img_width = "*";
} 

i guess i had to add the tmp_name :)
Thanks for the help.

cheers,
- Sebastian

----- Original Message ----- 
From: "daniel" <[EMAIL PROTECTED]>


| what php version ? try putting $_SERVER['PHP_SELF'] in action aswell
| 
| >===== Original Message From "Sebastian" <[EMAIL PROTECTED]> =====
| >nope, still get Warning: getimagesize(Array)
| >i've tried everything and it just doesn't get the form data :|
| >
| >cheers,
| >- Sebastian
| >
| >----- Original Message -----
| >From: "daniel" <[EMAIL PROTECTED]>
| >
| >
| >| try removing that mime check , and put this to lower case encType
| >| try <INPUT name=image type=file> for now
| >| , let me know
| 
| 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to