...

View Full Version : getimagesize()



airoid
11-02-2006, 02:53 AM
Ever since we had our php.ini file hardended, we're received the following error when we try the getimagesize() command:


Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory

What could cause this?

mlseim
11-02-2006, 04:00 AM
What does this word mean: hardended ?

airoid
11-02-2006, 06:50 AM
We had hacking issues is phpbb and the company has a security service in which they made some common changes to php.ini. I'm not sure exactly...

kehers
11-02-2006, 09:13 AM
In addition to the file path, did you passed an array of image into too? Confirm to be sure you passed in the right path to the image file. If that doesnt work and u passed an array of image info, post the function line and let's see what its like.

airoid
11-03-2006, 12:28 AM
The image is being uploaded through a form then GetImageSize() is used to check it which is when we get the error:

FORM:

<form action="index.php" method=post enctype="multipart/form-data">
Image: <input type=file name='image1'>
<input type=submit value="Submit">
</form>

AFTER FORM IS SUBMITTED:

$imgsize = GetImageSize($image1);

rafiki
11-03-2006, 12:34 AM
$image1 = $_POST['IMAGE'];
//?? this required still?

airoid
11-03-2006, 02:11 AM
I just gave that a try, and it got rid of the original error:

Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory

BUT, it doesn't upload the file as it's supposed to and still shows this error:

Warning: unlink() [function.unlink]: No such file or directory
(Notice the arrow is now gone from the ().



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum