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 Quote Link to comment 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"); ?> Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.