Re: php-cli and daemon
| From: | chris smith | Date: | Mon, 15 May 2006 13:32:32 +0000 |
| Subject: | Re: php-cli and daemon | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-236196@lists.php.net to get a copy of this message | ||
On 5/14/06, Michelle Konzack <linux4michelle@freenet.de> wrote:
Hello, I run a webserver which is a frontend for a huge PostgreSQL database. Now I like to code some stand-alone Apps, which can connect to a daemon uploading files and geting infos from the database (NO, the have no right to connect directly to the database) Questions for now:This would be a good place to start. http://www.php.net/pcntl Depending on your app you might need to look at shared memory, but the main area to check out would be the process functions. http://www.php.net/manual/en/ref.sem.php1) How to code a daemon?
2) How to use ssl-certs for the connection?
The $USER must use an USB-Key with its one cert.
There are ssl functions you can use:
http://www.php.net/manual/en/ref.openssl.php
--
Postgresql & php tutorials
http://www.designmagick.com/