summaryrefslogtreecommitdiff
path: root/ext/spl/examples/autoload.inc
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-04 19:39:46 +0000
committerMarcus Boerger <helly@php.net>2003-12-04 19:39:46 +0000
commitf679b5c935f713854a14f00370d4d832a4850b56 (patch)
tree2be7a10dbb7a38db90411d8c67f7c799023ca3ad /ext/spl/examples/autoload.inc
parent2216eb4511c20fd0315c7217d90027b32255b2f4 (diff)
downloadphp-git-f679b5c935f713854a14f00370d4d832a4850b56.tar.gz
Update documentation
Diffstat (limited to 'ext/spl/examples/autoload.inc')
-rwxr-xr-xext/spl/examples/autoload.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/spl/examples/autoload.inc b/ext/spl/examples/autoload.inc
new file mode 100755
index 0000000000..632ab8e4e8
--- /dev/null
+++ b/ext/spl/examples/autoload.inc
@@ -0,0 +1,7 @@
+<?php
+
+function __autoload($file) {
+ require_once(dirname($_SERVER['PATH_TRANSLATED']).'/'.strtolower($file).'.inc');
+}
+
+?> \ No newline at end of file