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
Progamming language PHP allows one to limit executing of external commands via configuration directive safe_mode. This directive should contain fu ...
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
Hier bieten wir Ihnen unser ganz neues Server Monitoring Script V2, welches bei Serverausfällen usw. Warnmeldungen an den Betreiber eines Serve ...
ANG GES G P
Eine Loginverwaltung, die möglichst ohne Eingriff des Webmasters funktioniert. Nicht "ready to run" sondern eine schrittweise Anleitung, um das Z ...
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
Das Kundenlogin-Script steht für einfache Verwaltung Ihres Kundenstamms inkl. zahlreicher Zusatz-Features! - Versenden Sie personalisierte Rund-M ...
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
Use this script in your contact form, for you whois query tool or just there where some extra validation is needed. A session will be created insi ...
1368 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