X7ROOT File Manager
Current Path:
/opt/alt/php53/usr/share/doc/pear/Base/docs
opt
/
alt
/
php53
/
usr
/
share
/
doc
/
pear
/
Base
/
docs
/
ðŸ“
..
📄
CREDITS
(229 B)
📄
LICENSE
(1.53 KB)
ðŸ“
repos
📄
tutorial.txt
(8.59 KB)
📄
tutorial_autoload.php
(495 B)
📄
tutorial_example_01.php
(215 B)
📄
tutorial_example_02.php
(189 B)
📄
tutorial_example_03.php
(107 B)
📄
tutorial_example_04.php
(1.39 KB)
📄
tutorial_lazy_initialization.php
(914 B)
Editing: tutorial_autoload.php
<?php $dir = dirname( __FILE__ ); $dirParts = explode( DIRECTORY_SEPARATOR, $dir ); switch ( $dirParts[count( $dirParts ) - 3] ) { case 'doc': require_once 'ezc/Base/base.php'; break; // pear case 'trunk': require_once "$dir/../../Base/src/base.php"; break; // svn default: require_once "$dir/../../Base/src/base.php"; break; // bundle } /** * Autoload ezc classes * * @param string $className */ function __autoload( $className ) { ezcBase::autoload( $className ); } ?>
Upload File
Create Folder