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 736429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:36:14+00:00 2026-05-14T07:36:14+00:00

I will be writing my first daemon in php and I have a couple

  • 0

I will be writing my first daemon in php and I have a couple really basic questions that I need help with.

  1. What packages need to be
    installed on my linux server and
    Does anything in PHP need to be
    enabled? So far I have gotten this –
    http://pear.php.net/package/System_Daemon/download

  2. Where on server do I save my
    daemon files?

  3. I have a number of
    files that need to be included
    within the daemon that contain
    classes and functions for gathering
    emails and attachments through IMAP.
    All of these files are currently in
    my web public directory, how do I
    include these files within my daemon?

I think that is everything I need to get started. Thanks so much!

  • 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-14T07:36:14+00:00Added an answer on May 14, 2026 at 7:36 am
    1. What packages need to be installed on my linux server and Does anything
      in PHP need to be enabled? So far I
      have gotten this –
      http://pear.php.net/package/System_Daemon/download

    As long your php installation includes sockets you’ll be able to write any daemon.
    Most of current php packages provides sockets support.
    You need a shell access to be able to configure and execute your daemon, it won’t be done by serving it as a web application.

    I don’t know about the package you mentioned but it’s likely to be a way to make you easier to write and maintain your daemon.

    1. Where on server do I save my daemon files?

    Anywhere, you just need a shell access, you’ll probably need root privileges, if you need to launch it on a port under 1024. Create a special user, eventualy make a jail, you’ll probably be fine.

    1. I have a number of files that need to be included within the daemon that
      contain classes and functions for
      gathering emails and attachments
      through IMAP. All of these files are
      currently in my web public directory,
      how do I include these files within my
      daemon?

    Use a config file, such as a ini which is supported by PHP to specify a data directory and read from.

    Further reading :

    • Create daemons in PHP
    • Daemons in PHP
    • phpsocketdaemon library
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing my first real MVVM application, and the first step the user will
I'm writing a script that will take a filename as an argument, find a
I'm writing a script that will convert one file type to another (for some
I'm looking at writing a mashup app that will take submission titles from a
I will be writing a little Python script tomorrow, to retrieve all the data
I'm creating my first Spring MVC app on Tomcat 6. Certain pages will be
This is my first attempt at writing a QT app, and I'm just trying
I'm writing a web app (well, actually it will eventually be an OS X
Let's say I'm writing a eBook reader for Windows Phone 7. Now the first
I am writing a small Windows Forms application in C#. Basically, it will ask

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.