Richie is an Entrepreneur, a Technologist and Cloud Architect. Loves how technologies brings the promise of an easier life, but enjoys the challenge to make it work. Work achievements, play, & fatherhood are the things that drive Richie.
// And off to the sockets $socket = socket_create(AF_INET, SOCK_RAW, 1); socket_connect($socket, "www.google.com", null);
// If you’re using below PHP 5, see the manual for the microtime_float // function. Instead of just using the microtime() function. $startTime = microtime(true); socket_send($socket, $package, strLen($package), 0); if (socket_read($socket, 255)) { echoround(microtime(true) - $startTime, 4) .' seconds'; } socket_close($socket);