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 Link to comment https://forums.phpfreaks.com/topic/96856-getimagesize-inconsistency/ 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 Link to comment https://forums.phpfreaks.com/topic/96856-getimagesize-inconsistency/#findComment-495696 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 Link to comment https://forums.phpfreaks.com/topic/96856-getimagesize-inconsistency/#findComment-495754 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.