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 Passwort-Generator ist ein PHP-Script zur automatischen Generierung von Passwörtern. Anhand von Listen können Optionen wie die Anzahl der Pa ...
ANG GES G P
Hier finden Sie das Kontaktformular mit eingebautem Captcha. Für das Captcha können 3 verschiedene Schriftarten gewählt werden. Ebenso können ...
ANG GES G P
PHP Secure Web is a security model, that could be applied to websites written in PHP scripting language using any kind of a database. We used ADOd ...
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ä ...
ANG GES G P
FA-Pass ist eine gute User-Management-Lösung (bzw. ein umfangreicher Passwortschutz) die jeder für seine Zwecke anpassen kann. Funktionsumfang: ...
ANG GES G P
Mit dem PHP Kundenlogin-Script erhalten Sie alle nötigen Dateien, um einen eigenen Kundenlogin auf Ihrem Webspace zu betreiben. Nutzen Sie die v ...
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
PHP classes to ease the following operations: generating XML compliant date/time form elements, cleaning user input, validating and formatting d ...
1065 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