I'm working on a php
websocket
chat app and everything's working fine, but the problem is I went to a hosting company to get a hosting plan and after I've uploaded my app websocket
didn't worked because I didn't find a way to run server.php
file.
On my local machine, I was able to run
server.php
file from the terminal.
What I wanna know that, Is there any way to create a php
file act like server.php
?
You need server hosting with access to shell/bash console. This is usually unavailable on shared ones. The basic hosting that would allow you to run this is a VPS or advanced a dedicated one.
But with VPS you might run into problems with hosting company if your script takes too much resources or the VPS instance is configured so that it will kill 'lingering' processes (depends on VM and configuration).