Re: [PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby wrote: Assuming it has permissions, and all the stars are aligned, you should get the output of the 'netstat -l' command echoed to the screen. Thanks Jim, this really solved the problem up. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Re: check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby solved the problem I didn't even known that I can exec *nix commands straight from php file. this gave me what I wanted. Thanks guys for the help Antanas Vipartas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: check socket status

2006-05-10 Thread Antanas Vipartas
ned. But the program, listening on that port, senses the "fsockopen" connection which I don't want to be. Is there another way to sense if the socked is listened by some service? thanks Antanas Vipartas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Jim Moseby wrote: Your server is *nix? You could: $netstat_info=`netstat -l`; // notice back-tics ...then parse through the output. JM `netstat -l | grep 5514` gives me information about listening service on port 5514. That's all I needed but I only can get this from *nix console. How c

[PHP] check socket status

2006-05-10 Thread Antanas Vipartas
Hi I need to check if socket on some port is listened by some service. How could I do this ? thanks, Antanas Vipartas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php