jhony Posted December 13, 2007 Share Posted December 13, 2007 Hello, Anyone know what variable must be set whe PHP 5.1 running in SAFE MODE To get work that: system("exec gcc-v 2>&1"); This is only example ( seems to be no output in browser in all commands) I have defined safe_mode_exec_dir but seems to be to enough.. just white sceen no output Please help Link to comment https://forums.phpfreaks.com/topic/81491-php-safe-mode-and-21-running-etc/ Share on other sites More sharing options...
trq Posted December 13, 2007 Share Posted December 13, 2007 system doesn't output anything, it returns a string. Try... <?php echo system("gcc -v 2>&1"); ?> Link to comment https://forums.phpfreaks.com/topic/81491-php-safe-mode-and-21-running-etc/#findComment-413748 Share on other sites More sharing options...
jhony Posted December 13, 2007 Author Share Posted December 13, 2007 thrope i know that's string but this is the same i tried also and still don't work (same effect - no string ) But when i turn off safe mode it working good (showing good version of gcc in browser....) Anyone knows? Link to comment https://forums.phpfreaks.com/topic/81491-php-safe-mode-and-21-running-etc/#findComment-413761 Share on other sites More sharing options...
effigy Posted December 13, 2007 Share Posted December 13, 2007 gcc may not be in your path; try which gcc. Link to comment https://forums.phpfreaks.com/topic/81491-php-safe-mode-and-21-running-etc/#findComment-413814 Share on other sites More sharing options...
jhony Posted December 13, 2007 Author Share Posted December 13, 2007 doesn't work also i even copied some bins to this dir to test so paths are ok, problem is with this string output, even if path will be bad should give as string communicate that gcc was not found etc.. Problem is in somewhere else...in php.ini Jhony Link to comment https://forums.phpfreaks.com/topic/81491-php-safe-mode-and-21-running-etc/#findComment-413863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.