Hi
I have a strange problem...
I have moved a site from one host to another and now one funktion is not working...
In an inmage upload script done with
<input name="upload" type="file">
and
move_uploaded_file($_FILES['upload']['tmp_name'], $uploadfile)
I upload an image...
But before I move the file I check the size and format this way
$image = getimagesize($_FILES['upload']['tmp_name']);
$type = $image['mime'];
$width = $image[0];
$height = $image[1];
IF($type == 'image/jpeg' AND $width == '200' AND $height == '150'){move_uploaded_file($_FILES['upload']['tmp_name'], $uploadfile);}
This has always worked, but now after I move the site to another host-server it doesn't work.
It won't upload the image and after a little research I can see that nomatter what I try to upload the parameters are just empty... $type, $width and $height is just nothing and therefore it won't upload offcause...
But why isn't this working... It has always worked fine, so it's only on the new server it doesn't work... Can anyone come with an explanation on this?
all the best
Michael