Размер файла: 1.48Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
$dir_kartinki = opendir ("./images");
while ( $file_kartinki = readdir ($dir_kartinki))
{
if (($file_kartinki != ".") && ($file_kartinki != "..") && ($file_kartinki != "index.php") && ($file_kartinki != "kol.php") && ($file_kartinki != "Thumbs.db") && ($file_kartinki != ".htaccess") && ($file_kartinki != "tr_win.php"))
{
$dir1_kartinki = opendir ("./images/$file_kartinki");
while ($file1_kartinki = readdir($dir1_kartinki))
{
if(($file1_kartinki != ".") && ($file1_kartinki != "..") && ($file1_kartinki != "index.php") && ($file1_kartinki != "kol.php") && ($file1_kartinki != "Thumbs.db") && ($file1_kartinki != ".htaccess") && ($file1_kartinki != "tr_win.php"))
{
$dir2_kartinki = opendir ("./images/$file_kartinki/$file1_kartinki");
while ($file2_kartinki = readdir ($dir2_kartinki))
{
if(($file2_kartinki != ".") && ($file2_kartinki != "..") && ($file2_kartinki != "index.php") && ($file2_kartinki != "kol.php") && ($file2_kartinki != "Thumbs.db") && ($file2_kartinki != ".htaccess") && ($file2_kartinki != "tr_win.php"))
{
$file_array_kartinki[] = "$file1||$file||$file2";
}
}
$all_kartinki = count($file_array_kartinki);
}
}
}
}
echo "[$all_kartinki]";
?>