include('php://filter/string.toupper/resource=/foo/bar/baz');

Filters can be stacked, set on the read or write chains individually (though the latter hardly matters for include/require), and resource can be another wrapper, not just a local file.

Ref: http://www.php.net/wrappers.php

-Sara

----- Original Message ----- From: "Sebastian Bergmann" <[EMAIL PROTECTED]>
Newsgroups: php.internals
To: <internals@lists.php.net>
Sent: Tuesday, March 07, 2006 11:44 PM
Subject: "Tunnelling" require/include through userspace streams filter


Is there a way to tunnel require/include through a userspace streams
filter?

What I want to do is write a userspace streams filter and register that
as some kind of default filter through which require/include read their
files.

Thanks,
Sebastian

--
Sebastian Bergmann                      http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to