Made in PHP »

You can use either system() or exec(). Just remember to ALWAYS use the full path to the command. So instead of entering 'top -n1' use '/usr/bin/top -n1'.
Posted by tamilsolai 1136 days ago (http://advancedphptutorial.blogspot.com)
Discuss  | Bury | Tweet This | Tagged: executing shell command php shell
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.