Trying to setup PHP WebSockets Server
-
- A regular
- Posts: 44
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Feb 19, 2015 6:50 am
Trying to setup PHP WebSockets Server
Hello! I am trying to setup a PHP WebSockets server using this PHP class. However, there is the problem that all scripts are terminated after 90 seconds. I could technically use crontab, but that would be abuse. A solution would be to repeatedly run it, but that would make my computer become almost server, and my computer cant be on 24/7. I am using sockets to make a chatroom, so hopefully you see and understand my predicament. What can I do? Thanks!
Re: Trying to setup PHP WebSockets Server
A web application like this would be much better suited to a VDS, where you have full shell access and can run the script 24/7. Our standalone webhosting is not intended to be used with daemons or any listening scripts, like this socket server. Our single-core Linux VDS package is priced very affordably and would be perfectly suited to run this.
-
- A regular
- Posts: 44
- Joined: Thu Feb 19, 2015 6:50 am
Re: Trying to setup PHP WebSockets Server
So VDS/VPS is the only way to do this? Oh well. I might get it soon. I don't know. Thanks though.Spray wrote:A web application like this would be much better suited to a VDS, where you have full shell access and can run the script 24/7. Our standalone webhosting is not intended to be used with daemons or any listening scripts, like this socket server. Our single-core Linux VDS package is priced very affordably and would be perfectly suited to run this.