knowing the number of busy ports in my machine

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

knowing the number of busy ports in my machine

Post by susrisha »

Hello..
I want to know the list of all the ports that are in usage for my system. Can i make it possible through web support?
Here is my problem:
My apache runs on port 9090
I have say another process which is running on port 10000 and one more at 10001
I want to know if the port 10000 is busy or not using a web script.
Can someone guide me through this?
A simple direction will be enough. I am using Apache in a Windows machine.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: knowing the number of busy ports in my machine

Post by Benjamin »

You could try grabbing the output of netstat via a system call.
Post Reply