When you're running the cron job, is your cron job calling a PHP page hosted on a web server or is it running PHP code outside of a web server (which I'd recommend above the former) using php -f myfile.php?
As for using sockets to stream data, where is it being streamed to and by what mechanism?