4.0) { break; } $zi=2*$zr*$zi+$Im; $zr=$a-$b+$Re; } ImageFilledRectangle($img, $x*$scale, $y*$scale, ($x+1)*$scale-1, ($y+1)*$scale-1, $c[$n]); ++$x; } ++$y; } header('Cache-Control: no-store, no-cache, must-revalidate ,proxy-revalidate'); // HTTP/1.1 header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header ("Pragma: no-cache"); header("Expires: 0"); header('Content-Transfer-Encoding: none'); header('Content-type: image/png'); //white init $white = imagecolorallocate($img, 255, 255, 255); $time_stop = microtime_float(); $elapsedTime=$time_stop-$time_start; $string= "Time spent in fetching database rows was ".$elapsedTime." seconds"; imagestring($img, 1, 5, 5, $string, $white); ImagePng($img); } catch(Exception $e){ echo $e->getMessage(); exit(); } ?>