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 Form Captcha is a powerful script that can protect your form, comment area, guestbook or shopping cart from automatic submissions, the tool ...
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
The way to secure PHP scripts is through a carefully selected combination of configuration settings and safe programming practices. Based on the v ...
ANG GES G P
Auf diesem AVS Portal können sich Besucher und Webmaster anmelden.Ihre Besucher können eingetragene Webseiten nur aufrufen wenn diese die Alte ...
ANG GES G P
During module initialisation a shared memory segment is created and initialised with a randomly generated secret. This segment remains attached ac ...
ANG GES G P
Das Kundenlogin-Script steht für einfache Verwaltung Ihres Kundenstamms inkl. zahlreicher Zusatz-Features! - Versenden Sie personalisierte Rund-M ...
ANG GES G P
Login Manager V3.0 is designed for web administrator to easily manage user accounts, create membership protected areas on the website, and provide ...
ANG GES G P
Hier die neueste Version des Captchas incl. Kontaktformular. Das Captcha dient dazu, vor Spammern zu schützen. Das Captcha lässt sich in nahezu ...
977 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