getimagesize or loop pblm

From: Date: Mon, 07 Oct 2002 00:45:51 +0000
Subject: getimagesize or loop pblm
Groups: php.general 
Request: Send a blank email to php-general+get-119032@lists.php.net to get a copy of this message
Hi all, Does anybody can tell me why i have this error :"Fatal error: Maximum execution time of 5 seconds exceeded in photos2.php on line 28" whith this $tab_img = array(); $tab_img_size = array(); for($i=0;$i=56;$i++){ $tab_img[$i] = "images/tof/real_size/techp02_".$i.".jpg"; $tab_img_size = array( /* line 28 */ $i => getimagesize($tab_img[$i])); } Is the getimagesize function too long for making it 56 times?? What do u think ? In fact i want to get all the image size to make a popup link on the thumnail at the real size of the image.Because images don't have the same size and i want to have a clean window whith the popup. I've ever tried this before : $tab_img = array(); $tab_img_size = array(); for($i=0;$i=56;$i++){ $tab_img[$i] = "images/tof/real_size/techp02_".$i.".jpg"; $tab_img_size[$i] = getimagesize($tab_img[$i]); } Hope you understand. TIA. zeg

« previous php.general (#119032) next »