Page 1 of 1
Use exec() to ping client from server in php
Posted: Tue Jul 06, 2010 1:54 am
by yan
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.
Re: Use exec() to ping client from server in php
Posted: Wed Jul 07, 2010 11:51 am
by kaisellgren
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.