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
This is just a handy little class (with example) that allows a user browse a unix file system when PHP is not in safe mode. This is a script that ...
ANG GES G P
Ein Modul um eine Topsite-Bewertung zu machen. Einfach in den Ordner "module" laden und in der Administration aktivieren. Der User kann seinen Ban ...
ANG GES G P
The Accelerator is an easily installed and free plugin extension to PHP that can make PHP scripts run faster by typically 2 to 3 times. It does th ...
ANG GES G P
und mal wieder ein Passwordgenerator zum Beispiel als Service auf eurer HP,wobei man hier ein Password entweder automatisch generieren lassen kan ...
ANG GES G P
Dieses Script erstellt einen passwortgeschützten Bereich mittels .htaccess-Dateien. Es können Benutzer zu einem Bereich hinzugefügt, editiert u ...
ANG GES G P
Das Programm ersetzt die Namen sämtlicher Konstanten, Klassen, Funktionen und Variablen durch ihren MD5 verschlüsselten Wert und die Werte von T ...
ANG GES G P
Mithilfe von Captcha Image Maker ist es möglich ein Captcha-Bild mit beliebiger Zeichenfolge im Vordergrund und bestimmter Intensität der Zufall ...
ANG GES G P
The most powerful yet easy to use script to protect your web pages and other web assets (such as pdf, zip, images etc) from digital product thieve ...
692 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