<?php /* *подсветка кода *автор: nc_soft *25.08.07 */ $num=30; $i=100; $rand=''; $mtrand=''; while ($i) { $rand.=rand(0,100)."\n"; $mtrand.=mt_rand(0,100)."\n"; $i--; } //fwrite(fopen('rand.prn','w+'),$rand); //fwrite(fopen('mtrand.prn','w+'),$mtrand); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body {font-family:Arial, Helvetica, sans-serif; font-size:12px} div.main {margin:1%} div.code {border:1px solid black; background-color: #FFFFCC; padding:5px} </style> <title>Untitled Document</title> </head> <body> <div class="main"> <div class="code"> <? highlight_file('rand.php'); ?> </div> </div> </body> </html>