RE: [PHP] check socket status
| From: | Jim Moseby | Date: | Wed, 10 May 2006 15:32:20 +0000 |
| Subject: | RE: [PHP] check socket status | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235908@lists.php.net to get a copy of this message | ||
> Hi
>
> I need to check if socket on some port is listened by some service.
>
> How could I do this ?
>
Your server is *nix? You could:
$netstat_info=
netstat -l; // notice back-tics
...then parse through the output.
JM