i have a code for Client and Server Socket Programming.. In Server.php file, i am reading data from client and uploading same data to mysql.
$input = socket_read($spawn, 1024) or die("Could not read input\n");
$sql= "INSERT into data VALUES ('$input')";
the server this code is only running whenever call that URL in browser. i need to run the server program continuously 24x7. What should i do in this particular case. Some offering hosting along with Sockets. In this case do i not need to run the server.php in browser? or is there any other way?