|
Posted by Julien Biezemans on 05/19/06 20:16
Jerry Stuckle wrote:
>
> Actually, I think this is a job better suited for the Apache
> configuration. Try alt.apache.configuration
>
> You may also be able to do some of it at the OS (assuming you're using a
> version of Unix/Linux).
>
How can apache help me there? I don't see the point. Please note that I
need full local filesystem access in some internal parts of the
application. The "jailed" wrapper is meant to be used as the default
file:// scheme handler but internal stuffs will need the unrestricted
wrapper (accessed under a different scheme than the default one, for
example).
Someone pointed me to open_basedir ini instruction, but this also causes
_any_ stream function to be restricted to the specified directory, which
is not acceptable.
For example, I have a class autoload function that needs to access a
directory outside the jail.
I know, that's tricky. But I'm convinced that PHP could improve its
stream wrappers support by supplying built-in wrapper classes. At the
moment, being able to register a custom file:// scheme handler is almost
of no use at all as there is now way to actually read and write the
files within the custom wrapper.
Julien.
Navigation:
[Reply to this message]
|