Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1030103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:38:51+00:00 2026-05-16T12:38:51+00:00

I am doing a tool in PHP for my personal use. But PHP is

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:38:52+00:00Added an answer on May 16, 2026 at 12:38 pm

    http://www.enderunix.org/docs/eng/daemon.php provides a fairly thorough but short introduction with sample code that seems to cover all the important bits. There’s a much more in-depth description in “Advanced Programming in the UNIX Environment (2nd edition)” if you’re willing to spend some money on paper (worth it, IMHO).

    The link above does not deal with the init scripts, but you can probably figure that out with some searching – all you need is some way of starting the daemon code and some way of sending it signals later – typically, you write the PID of the daemon to a /var/run/XXX file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing an online database dumping tool. But when I output the data, PHP
I'm doing a Java Record/Replay tool and I need to launch Java applications from
What's the popular tool people use in Unix to parse/analyze log files? Doing counting,
we have a internal tool a web php app we use . There are
I'm working on fixing a wordpress site that's very slow. I need a way
I'm doing i18n for a php project using gettext. I'd like to use the
I have heard that Duplicity is a nice tool for doing incremental backups. The
I'm trying to find a good tool (open source or commercial) for doing comparisons
I am writing a small glue tool for doing some testing and I would
I'd like to use CI profiler as a tool to audit an app. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.