View file top.php
<?php $accept = getenv ('HTTP_ACCEPT'); if (strpos($accept, 'text/html') !== false or $accept == '*/*') {include ('xml.php'); } else {include ('wml.php');} $o=unserialize(file_get_contents("top.dat")); $o[$id][$bal]++; fputs(fopen("top.dat","wb"),serialize($o));echo "<br/>Ваш голос учтён,спасибо!".$px; ?>