raj_2006
09-29-2006, 01:00 AM
Hi all
I am using a system command that will work through shell_exec() to track the physical address of a lan card.
It is working nicely from my localhost but when i am trying to run the code from the webhosting company's server then nothing is happening.
here is the code:
$output1 = shell_exec('ipconfig /all');
preg_match('/Physical.*/i', $output1, $result);
preg_match('/:.*/i', $result[0], $res);
list($a,$b)=explode(":",$res[0]);
$b=trim(" $b ");//here $b is the physical address which i am getting.
Please suggest me shall i inform the hosting company or change the something in my code.
Thanks in advance
Luv
Raj
I am using a system command that will work through shell_exec() to track the physical address of a lan card.
It is working nicely from my localhost but when i am trying to run the code from the webhosting company's server then nothing is happening.
here is the code:
$output1 = shell_exec('ipconfig /all');
preg_match('/Physical.*/i', $output1, $result);
preg_match('/:.*/i', $result[0], $res);
list($a,$b)=explode(":",$res[0]);
$b=trim(" $b ");//here $b is the physical address which i am getting.
Please suggest me shall i inform the hosting company or change the something in my code.
Thanks in advance
Luv
Raj