php - How to run the websocket without shell command -


i'm building real time message system , used http://www.sanwebe.com/2013/05/chat-using-websocket-php-socket/comment-page-1 tutorial example.

in local pc worked find. have shared server , hosting provider doesn't allow me access shell command on server.

can me on this. there way can execute shell command in php file?

you can start web-socket php like:

 exec("php -q ".your_path_of_directory."/server.php >/dev/null 2>&1 &"); 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -