How can we execute linux commands from php programs??

Posted by puspa on Stack Overflow See other posts from Stack Overflow or by puspa
Published on 2010-06-15T08:17:56Z Indexed on 2010/06/15 8:22 UTC
Read the original article Hit count: 207

Filed under:

I want to see output of the following code in the webbrowser:

code:

  $var = system('fdisk -l');

  echo "$var";

?>

When i open this from web browser then no output in the web browser. So How can I do this?? Please help !

Thanks Puspa

© Stack Overflow or respective owner

Related posts about bash