View file an.php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" media="all" href="style.css"> </head> <div class=s2> <?php $text = file("file.dat"); $top = rand (0,count($text)-1); $out = explode("|||",$text[$top]); echo "$out[1]"; ?></div></body></html>