?'; for($i = 0; $i < strlen($chars); $i++) { $char_array[$chars{$i}] = $i; } $text = array_merge( array( ' ', ' **** COMMODORE 64 BASIC V2 **** ', ' ', ' 64K RAM SYSTEM 38911 BASIC BYTES FREE ', ' ', 'READY. ', ), str_split(str_pad('LOAD"'.$_SERVER['HTTP_HOST'].'",8,1', 40), 40), array( ' ' ), str_split(str_pad('SEARCHING FOR '.$_SERVER['HTTP_HOST'], 40), 40), array( '?VHOST NOT FOUND ERROR ', 'READY. ' ) ); header('Content-type: image/gif'); $im = imagecreatetruecolor(320*$size, 200*$size); $bg = imagecolorallocate($im, 66, 66, 231); imagefill($im, 0, 0, $bg); foreach($text as $key => $value) { for($i = 0; $i < strlen($value); $i++) { $char = isset($char_array[strtoupper($value{$i})]) ? $char_array[strtoupper($value{$i})] : $char_array[' ']; imagecopyresized($im, $c64, $i*$size*8, $key*$size*8, $char*9, 0, $size*8, $size*8, 8, 8); } } imagegif($im); imagedestroy($im); imagedestroy($c64); } else { header('HTTP/1.1 404 Not Found'); header('Content-type: text/html; charset=iso-8859-1'); ?>
No virtual host has been configured for .