byte.billionaire Posted February 12, 2007 Share Posted February 12, 2007 Hi, Could you please help me how to write a PHP program for excecuting the external program. I have tried with both exec() and shell_exec() but it doesn't work. eg. <?php $data = array(); $cmd = 'ifconfig eth0 0.0.0.0 down'; exec ($cmd, $data, $ret); ?> How to solve this problem?? Thanks. 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.