summaryrefslogtreecommitdiff
path: root/ext/spl/examples/autoload.inc
diff options
context:
space:
mode:
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