-5

Is it possible to run cmd command using php? i.e: I can see ip configuration as follows: step1: open cmd step2: run ipconfig/all

If I want to do this using php as like below what should I do: I will input ipconfig/all in a text field then click a button named 'RUN' then I will get ip configuration as like as cmd command results.

1 Answers1

0

try exec and shell_exec:

http://php.net/manual/en/function.shell-exec.php

before that, make sure you have enough privilege to run it.

harrrrrrry
  • 13,643
  • 2
  • 23
  • 28