Exemplo n.º 1
0
function ReadDirectory($directory)
{
    $handle = opendir($directory);
    while ($katalog = readdir($handle)) {
        if (is_dir($directory . $katalog) && $katalog != '.' && $katalog != '..') {
            ReadDirectory($directory . $katalog);
        }
        if (is_file($directory . '/' . $katalog)) {
            OpenFile($directory . '/' . $katalog);
        }
    }
}
function ReadDirectory($directory)
{
    $handle = opendir($directory);
    while ($katalog = readdir($handle)) {
        echo $katalog . "\n";
        if (is_dir($directory . $katalog) && $katalog != '.' && $katalog != '..') {
            ReadDirectory($directory . $katalog);
        }
        //echo 'RIDER: '.$directory.'/'.$katalog."\n";
        if (is_file($directory . '/' . $katalog)) {
            OpenFile($directory . '/' . $katalog);
        }
    }
}
Exemplo n.º 3
0
function ReadDirectory($directory)
{
    $handle = opendir($directory);
    while ($katalog = readdir($handle)) {
        if ($katalog != "." && $katalog != "..") {
            //	echo $katalog."\n";
            if (is_dir($directory . $katalog) && $katalog != '.' && $katalog != '..') {
                ReadDirectory($directory . $katalog);
            }
        }
        if (is_file($directory . "/" . $katalog)) {
            OpenFile($directory . "/" . $katalog);
        }
    }
}
Exemplo n.º 4
0
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '../');
require_once 'GhostRider/ReadDirectoriesFiles.php';
$czymTestujemy = array(array('cojest', 6), array('natalia', 7), array('Jake', 4));
$testujemy = array('Dziusio_strlen', 'pwltt_str', 'Kollwing_strlen', 'Vernathic_strlen', 'jake_strlen', 'Rudi_strlen');
ReadDirectory('../');
for ($n = 0; isset($testujemy); $i++) {
    for ($j = 0; $j < 7; $j++) {
        echo $testujemy[$i]($czymTestujemy[0]);
    }
}