You are here: Re: PHP harm on WebDAV « PHP Programming Language « IT news, forums, messages
Re: PHP harm on WebDAV

Posted by Miguel Cruz on 08/03/06 17:48

Sensei <senseiwa@mac.com> wrote:
> Miguel Cruz <spam@admin.u.nu> said:
>> Disable system() and similar functions. You will not have security
>> in a multi-untrusted-user environment when running PHP as an Apache
>> module unless you do this.
>
> Do you have any link that shows how to disable particular functions?
> How's the granularity that I can apply --- and that you suggest?

http://my2.php.net/manual/en/features.safe-mode.php#ini.disable-functions

You just put it in php.ini, and you can disable any functions you please.

For instance:

disable_functions = exec,passthru,proc_open,shell_exec,system

I wouldn't stake my career on it but I think that'll cover the ones that
allow PHP code to invoke arbitrary external programs.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu

 

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

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