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
phpSecurePages is a PHP module to secure pages with a login name and password. It can handle multiple user groups (each with their own viewing rig ...
ANG GES G P
Haben Sie es auch lästig wenn jemand Ihre selbstentwickelten Scripte weiterverkauft ohne eine Reseller Lizenz zu haben? Oder Handeln Sie mit Rese ...
ANG GES G P
Mit unserem Script CP::PERSOCHECK wird die Personalausweisnummer und das Alter eines Users überprüft. Bei korrekter Eingabe, wird der User weit ...
ANG GES G P
When developing web applications in PHP (or any other languages for that matter) there are several security aspects we should consider. In this ar ...
ANG GES G P
Class to crypt and decrypt data
ANG GES G P
Dieses Skript speichert seine erforderlichen Daten auf dem Server in einer Datei. Dadurch kommt man ohne eine Datenbank aus und muss trotzdem kein ...
ANG GES G P
Dieses Captcha ist eine grafische Sicherheitsabfrage, für z.B. Gästebücher und Formulare. Es dient dazu, vor Spammern zu schützen. Highlight ...
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 ...
866 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