exec(),system() not working in safe_mode_exec_dir
Posted: Thu May 08, 2003 2:06 pm
hi everyone,
i want to run the shell-command 'uptime' from my index.php. but i cannot get the output of 'uptime' back to php. i tried running a script without uptime, but it writes something to some file. however the file never gets created, so i guess the command is never executed from the php-script.
i have safe_mode on and copied /bin/uptime to my safe_mode_exec_dir. i don't get any errors, neither on the page-output, nor in php.error.log, even when logging E_ALL.
php-version and variables can be seen from http://mainframe.frontbone.de/phpinfo.php
please advise me with anything! i really don't know what to do about this... it looks like my php doesn't like me... i code php for about 1.5years, two friends of mine also looked at it, they code even longer than me... please, just anything :)
greetings,
sebastian
i want to run the shell-command 'uptime' from my index.php. but i cannot get the output of 'uptime' back to php. i tried running a script without uptime, but it writes something to some file. however the file never gets created, so i guess the command is never executed from the php-script.
i have safe_mode on and copied /bin/uptime to my safe_mode_exec_dir. i don't get any errors, neither on the page-output, nor in php.error.log, even when logging E_ALL.
php-version and variables can be seen from http://mainframe.frontbone.de/phpinfo.php
please advise me with anything! i really don't know what to do about this... it looks like my php doesn't like me... i code php for about 1.5years, two friends of mine also looked at it, they code even longer than me... please, just anything :)
greetings,
sebastian