Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to enter Shell commands in a php script 2

Status
Not open for further replies.

jahjah

Technical User
Jan 23, 2003
32
GB
I want to run a few shell commands to rcmd between unix servers and display the results within a webpage - how do I code a shell command within a PHP script??????

JahJah
 
Please look at:

The big caveats:
Make sure there is no way arbitrary code could be passed to the shell. There's a bunch of commands to help you with that.
Personally, if there's a different way to ascertain the desired data, use it.

The output of the shell command/scripts etc. can be taken easily into PHP.
 
Thanks DRJ478
That has loads of info which should help me!!

Jahjah
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top