Web Hosting Talk







View Full Version : safe_mode Again


Going Postal
11-19-2002, 04:23 PM
How can I accomplish this in safe_mode and will it lead to a security compromise ( /usr/bin/diff and /usr/bin/patch are part of the 'safe_mode_exec_dir' configuration directive.)



Complete problem:

The problem is that a script uses the backtick operator (`) to execute /usr/bin/diff and /usr/bin/patch. In order to fix this, I could use the system() or exec() function, but I need to know if /usr/bin/diff and /usr/bin/patch are part of the 'safe_mode_exec_dir' configuration directive for your PHP installation.

Going Postal
11-19-2002, 10:18 PM
There must be someone that can answer this