/usr/share/doc/php-horde-autoloader/examples/most_basic.php is in php-horde-autoloader 2.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <?php
/**
* Most basic usage example for Horde_Autoloader
* Load the default Horde Autoloader without any additional parameters
* In default configuration, the Autoloader tries to load
* My/Class/Name.php when My_Class_Name is first accessed
* No require_once statement is needed.
* */
require_once 'Horde/Autoloader/Default.php';
/**
* Now you can use any class from source files
* Example: Use Horde_Date without first loading the class file manually
*/
$dt = new Horde_Date(time());
print $dt->toIcalendar();
|