title: How to find all the listening port in PHP?
body: <p>I am working on PHP application and I need to find out all the ports that have listening status. </p>
  
  <p>Note: <code>fsockopen()</code> works only for established connection.</p>