I am doing a tool in PHP for my personal use. But PHP is very slow and the task I need to do is takes much time, so I'll make a daemon in c++ and keep it in the background (It will run in a VPS).
PHP would connect to the daemon througt a simple tcp socket (I'll try to design/use a simple IPC protocol) in order to submit the task. The daemon will manage the tasks with a simple FIFO queue. PHP would only start the task, but it wouldn't wait until it is end, because it can take several minutes (PHP would monitor the task too - but that's another topic).
The web/PHP interface won't be a problem at all. But I have no experience on unix daemon programming. I have made simple console programs with c++ on linux, so I'll just need a manual/book/guide and advices to get started on unix daemon developing.
Thanks.