setting up websockets without command line
问题 How can I follow a tutorial like this without using the command line? http://www.flynsarmy.com/2012/02/php-websocket-chat-application-2-0/ I need to be able to use websockets but have a shared server and no access to the command line. I cannot simply run the script from a browser, if the script would stop running when i closed the browser/disconnected from the internet. 回答1: Assuming your shared hosting provider supports crontab and cron jobs (most of them do), add the following job to the