View file darkworld/files/monstrs.php
<?php $duuu=opendir("data/monstrs"); $all = 0; while(($k=readdir($duuu))!==false){ if ($k=='.'||$k=='..'||$k=='.htaccess'||$k=='index.php') continue; $all++;} closedir($duuu); echo'Монстров: '.$all.'<br/>'; ?>
<?php $duuu=opendir("data/monstrs"); $all = 0; while(($k=readdir($duuu))!==false){ if ($k=='.'||$k=='..'||$k=='.htaccess'||$k=='index.php') continue; $all++;} closedir($duuu); echo'Монстров: '.$all.'<br/>'; ?>