Jump to content

Excecution the external program in PHP


byte.billionaire

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.