aragon
07-19-2010, 06:21 AM
Hello,
I have to develop a client/server application.
I would like to know if it is possible to make the server run on host395.hostmonster.com, using for example sockets (bind(), listen(), etc).
The server will listen to a specific port and accept clients.
A solution would be to develop the server in PHP and then run it in background with a command like exec("php -f ./myserver.php").
Another solution would be to compile a program written in C, and execute it in background using the command system("./myserver &") or something like that.
And this may have to be combined with "nohup" to be sure that the server runs in background.
Maybe that there are other ways to do that.
What would you suggest me to do?
Please note that I have no SSH access to my account for the moment.
Thanks for your help.
I have to develop a client/server application.
I would like to know if it is possible to make the server run on host395.hostmonster.com, using for example sockets (bind(), listen(), etc).
The server will listen to a specific port and accept clients.
A solution would be to develop the server in PHP and then run it in background with a command like exec("php -f ./myserver.php").
Another solution would be to compile a program written in C, and execute it in background using the command system("./myserver &") or something like that.
And this may have to be combined with "nohup" to be sure that the server runs in background.
Maybe that there are other ways to do that.
What would you suggest me to do?
Please note that I have no SSH access to my account for the moment.
Thanks for your help.