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 Protector - Komplettschutz & Lizenzsystem für Ihre PHP Scripte. Mit diesen Lizenzsverwaltungssystem können Sie ihre Scripte bei ihren Kunden ...
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
Block User-agents via PHP. Very handy in keeping out unwanted e-mail harvesting programs, programs that copy websites, etc.
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
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
Ein neues nützliches Captcha Script, welches eine zufällige Uhrzeit auf einer analogen Uhr anzeigt und diese dann in einem Formular eingegeben w ...
ANG GES G P
Class to crypt and decrypt data
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 ...
1057 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