I need to run a PHP script 24x7 on the server I'll be hosting my website on (Probably Godaddy). The PHP script's job is to open a socket and wait for incoming  connections. Once a connection is established, it receives some data from 'Somewhere' and pushes it to a database. The data from this database will be constantly accessed by my index.php and will be used accordingly having some particular frequency. The code is all ready and is working perfectly on my LAN using WAMP. But I am absolutely clueless on going about doing this in hosting accounts. I am guessing SSH, cron and cPanel is the way but no idea on how to do it and connect. Please elaborate the entire process and suggest some readings.
How can I run a background PHP script on a hosting account like godaddy?
php;cpanel;godaddy;cron