Use exec() to ping client from server in php
Moderator: General Moderators
Use exec() to ping client from server in php
Hi, I would like to ask that running exec() in php will cause any issues? and is it a bad idea to use exec() in php to ping client from server to check either it offline or online? Thank You.
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: Use exec() to ping client from server in php
It becomes dangerous at the point you place something dynamic as one of the parameters.
However, I do not see a reason to not use fsockopen(). You are better off with it and it should fit in your situation perfectly.
However, I do not see a reason to not use fsockopen(). You are better off with it and it should fit in your situation perfectly.