Could someone explain me in two words, what is daemon and what use of them in php?
I, know that this is a process, which is runing all the time.
But i can’t understand what use of it in php app?
Can someone please give examples of use?
Can i use daemon to lessen memory usage of my app?
As i understand, daemon can hold data and give it on request, so basically i can store most usable data there, to avoid getting it from mysql for each visitor?
Or i’m totally wrong? 🙂
Thanks 😉
cli application or process
You can use it to do; job that is not visible to user or from interface, e.g. database stale data cleanup, schedule task that you you wanted to update part or something on db or page in background
I think drupal or cron had cron script…perhaps checking it would help. Lessen memory? no, memory optimization is always on the application design or script coded.
No, a daemon is a script however you can create a JSON or XML data file that the daemon script can process.