bobinindia Posted March 19, 2008 Share Posted March 19, 2008 I have the same script running locally and on a remote server the remote is giving me these two messages Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory in Warning: filesize() [function.filesize]: stat failed for Array in Locally it is fine and actually both servers complete the script. Why the warning? remote and local: php 5.2.5 Help much appreciated Quote Link to comment Share on other sites More sharing options...
bobinindia Posted March 19, 2008 Author Share Posted March 19, 2008 This is the bad line of code $size=getimagesize($_FILES['images']['tmp_name']); if that helps Quote Link to comment Share on other sites More sharing options...
bobinindia Posted March 19, 2008 Author Share Posted March 19, 2008 Solved the array problem with foreach($_FILES['images']['tmp_name'] as $thisImage) { if(!empty($thisImage)) { $size=getimagesize($thisImage); // do whatever you want to do with $size } } in case anyone was interested Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.