| Posted by Johnny on 07/06/46 11:59 
"Nemon" <nemon@home.fake.com> wrote in messagenews:op.tgle7lu5no4rwm@nautilus...
 <snip />
 
 > I need to allow looping, branching and basic PHP features but no access to
 > OS resources and absolutely no file system access. I'd also need a way to
 > impose memory and CPU time restrictions.
 >
 
 hehe sounds a lot like a plain vanilla shared hosting account :-)
 
 one host I deal with will let you do limited system things like
 system("ls -l",$ret);
 but won't let you do chmod,create or write to a file (unless directory
 permissions are set to 757) since php comes in as an other user.
 
 I guess you could always redefine system, fopen and a few other functions so
 that they allow url opeing where appropriate but not local files.
 and then make it so that the code interface is via php so you control what
 gets uploaded and run.
 
 and you can set both timeout and max memory usage in php.ini
 [Back to original message] |