SILENT KILLERPanel

Current Path: > > opt > cloudlinux > alt-php53 > root > usr > share > doc > pear > Base > docs


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/alt-php53/root/usr/share/doc/pear/Base/docs

NameTypeSizeLast ModifiedActions
repos Directory - -
CREDITS File 229 bytes December 18 2019 11:15:09.
LICENSE File 1570 bytes December 18 2019 11:15:09.
tutorial.txt File 8799 bytes December 18 2019 11:15:09.
tutorial_autoload.php File 495 bytes December 18 2019 11:15:09.
tutorial_example_01.php File 215 bytes December 18 2019 11:15:09.
tutorial_example_02.php File 189 bytes December 18 2019 11:15:09.
tutorial_example_03.php File 107 bytes December 18 2019 11:15:09.
tutorial_example_04.php File 1424 bytes December 18 2019 11:15:09.
tutorial_lazy_initialization.php File 914 bytes December 18 2019 11:15:09.

Reading File: //opt/cloudlinux/alt-php53/root/usr/share/doc/pear/Base/docs/tutorial_example_04.php

<?php
require 'tutorial_autoload.php';

class myProgressFinder
{
    static public function findRecursiveCallback( ezcBaseFileFindContext $context, $sourceDir, $fileName, $fileInfo )
    {
        // ignore if we have a directory, but do print a "." and sleep for
        // extra demo time
        if ( $fileInfo['mode'] & 0x4000 )
        {
            echo ".";
            usleep( 100000 );
            return;
        }

        // update the statistics
        $context->elements[] = $sourceDir . DIRECTORY_SEPARATOR . $fileName;
        $context->count++;
        $context->size += $fileInfo['size'];
    }

    static public function findRecursive( $sourceDir, array $includeFilters = array(), array $excludeFilters = array() )
    {
        // create the context, and then start walking over the array
        $context = new ezcBaseFileFindContext;
        ezcBaseFile::walkRecursive( $sourceDir, $includeFilters, $excludeFilters,
                array( 'myProgressFinder', 'findRecursiveCallback' ), $context );

        // collect the statistics (which we don't do anything with in this example)
        $statistics['size'] = $context->size;
        $statistics['count'] = $context->count;

        // return the found and pattern-matched files
        sort( $context->elements );
        return $context->elements;
    }
}

$files = myProgressFinder::findRecursive( dirname( __FILE__ ) );
var_dump( $files );
?>

SILENT KILLER Tool