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. Link to comment https://forums.phpfreaks.com/topic/38116-excecution-the-external-program-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.