PHP patch exec_dir

Progamming language PHP allows one to limit executing of external commands via configuration directive safe_mode. This directive should contain full path to a directory conatining programs which PHP script can run. If the script tries to execute a command not located in this directory, the command is not executed. This configuration directive is active only if safe mode is enabled, which means more and sometimes unwanted restrictions to users.

PHP has no known possibility to limit executing of external commands with disabled safe mode. Teherefore, here is a patch adding special directive exec_dir straightly into PHP. This directive is very similar to safe_mode_exec_dir, but safe mode has not to be enabled.

This patch limits executing commands via functions from the exec family, i. e. exec(), system() or popen().

Reviews

There are no comments available yet.

Here you can write a comment


Please enter at least 10 characters.
Loading... Please wait.
* Pflichtangabe
ANG GES G P
PHP Server Monitor ist ein Skript, das prüft, ob Ihre Websites und Server betriebsbereit sind. Es verfügt über eine webbasierte Benutzeroberflà ...
ANG GES G P
Mit Hilfe von eBiene simpleCrypter ist es möglich eine Zeichenkette oder auch eine beliebige Zahl zu kodieren/verschlüsseln und diese auch zu de ...
ANG GES G P
Wollen Sie die Verzeichnisse Ihrer Webpräsenz vor ungebetenen Gästen schützen? Mit ScarHTAccess, einem PHP HTAccess Generator, kann jeder ohne ...
ANG GES G P
PostgreSQL Session Handler for PHP is a custom session save handler for PHP4 using PostgreSQL as the session cache. It allows multiple Web servers ...
ANG GES G P
A long, long time ago, during my early days with Web application development, I was asked to write an administration module for a Web site. This m ...
ANG GES G P
J4L Barcode for Javascript is a set of scripts that create barcodes. The barcodes will be created in the client (browser), there is no need for pr ...
ANG GES G P
Nichts Neues Aber Simpel der Zugang einer Seite durch vorheriges Login oder Registrierung. hierbei handelt es sich um eine Login/Register Prozed ...
ANG GES G P
GETmCRYPT liefert alles was nötig ist, um den GET String zu ver- und entschlüsseln. Variablen mit ihrem Wert in die Funktion geben und schon lä ...
1098 x viewed
0 x memorized
Details to the advertisement
ANG GES G P
Make a request

You are no longer logged in as a user. Please enter your name and your E-mail-adress!

Loading... Please wait.
Details to the seller