You are here: Re: Embedding secure scripting language in PHP (req PHP internals expert) « PHP Programming Language « IT news, forums, messages
Re: Embedding secure scripting language in PHP (req PHP internals expert)

Posted by Johnny on 11/28/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

 

Navigation:

[Reply to this 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

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