faqts : Computers : Programming : Languages : PHP : Common Problems : Tips and Tricks

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 18 people (56%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How do you use PHP to dynamically display all current TCP connections to the server along with the IP address of the visitor?

Dec 12th, 2000 21:51
Mark, Kari Kostamo,


the only thing i can think of is to do an $buffer=exec(netstat); 
command. It will execute netstat on the server and save it to the 
variable. this assumes the server is unix based.