<?php$duuu=opendir("MySql/base123/gorod");$all = 0;while(($k=readdir($duuu))!==false){if ($k=='.'||$k=='..'||$k=='.htaccess'||$k=='index.php') continue; $all++;} closedir($duuu);echo'Городов: '.$all.'<br/>';?>