Jump to content


Photo

sytem commands in php


  • Please log in to reply
1 reply to this topic

#1 arifs

arifs
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 18 September 2006 - 05:26 AM


hi ,
  plz tel me how to run system command in linux ,  I want to run linux command  like "ifconfig" and
"mii-tool" in php

plz send me code .
 

thanks 

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 18 September 2006 - 05:55 AM

system("ifconfig");
exec("ifconfig");

Try check the manual first: http://www.php.net/manual/en/index.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users