Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.
Ok, but I get the same warning no matter what program I try to run from that directory... If I can't run any programs, what's the safe_mode_exec_dir directive for then?
EDIT: My host has already placed a symlink to ImageMagicks convert in the safe_mode_exec_dir!
Last edited by asgerhallas on Thu Mar 16, 2006 11:09 am, edited 1 time in total.
If PHP is used in safe mode, system() and the other functions executing system programs refuse to start programs that are not in this directory. You have to use / as directory separator on all
It should allow you to execute the ImageMagick programs. safe_mode_exec_dir is PHP_INI_SYSTEM can only be set php.ini or httpd.conf.
EDIT:
My host has already placed a symlink to the program in the safe_mode_exec_dir!