Reply to Re: Embedding secure scripting language in PHP (req PHP internals expert)

Your name:

Reply:


Posted by Johnny on 11/03/46 11:59

"Nemon" <nemon@home.fake.com> wrote in message
news: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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация