I have a chat application implemented in PHP
using WebSockets
(http://code.google.com/p/phpwebsocket/), and on my localhost when i test it i have to run the WebSockets server through a command "php server.php"
, which starts the server on localhost and the file keeps running till i press "Ctrl + c" on my Ubuntu terminal. I mean it keeps on running the while loop, which is quite normal bcoz the server should be up to listen to the requests.
Now my doubt is that i have hosted this application on a shared hosting, which does not give me SSH
access, i mean i cannot get a terminal like interface where i used to run my command, so HOW will i run that server.php
script to start my server now?
And yes one thing that i mentioned i just need to run the script once, then the script will keep on running, and also the hosting provider allows to set up cron jobs
.
Please help, thanks in advance.