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

  • Home
  • SEARCH
  • 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 am writing my first project that will use autoconf and teaching it to
Do any apps/packages exist that will support writing to OS X's log database from
I'm writing an app that will need to make use of Timer s, but
I would like to think that some of the software I'm writing today will
I'm writing a website that will sell items from one of my classes. It
I am writing a web application that will run in kiosk mode on a
I am writing a program that will draw a solid along the curve of
I'm writing my first proper useful piece of software. Part of it will involve
I'm writing my first Perl app -- an AOL Instant Messenger bot that talks
I'm writing my first JAVA servlet and I have a question. May be it's

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.