
January 15th, 2013, 04:50 PM
|
|
Contributing User
|
|
Join Date: Dec 2012
Posts: 64
Time spent in forums: 11 h 36 m 11 sec
Reputation Power: 1
|
|
|
PHP-General - Loop Timeout? - Max Execution Time
For some reason I keep getting a max execution time error at the while loop and I'm not sure what I missed.
Example URL: domain.com/?img=1
PHP Code:
$getNext = rand(1,$count[0]);
$next = $selectedImages[$getNext][0];
while($next == $_GET['img']){
$getNext = rand(1,$count[0]);
$next = $selectedImages[$getNext][0];
}
|