Re: Control manager ...
| From: | Jason Wong | Date: | Tue, 17 Aug 2004 10:10:05 +0000 |
| Subject: | Re: Control manager ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194037@lists.php.net to get a copy of this message | ||
On Tuesday 17 August 2004 17:25, Marko Rastislav wrote:
> Could me somebody recommend with building-up automatic MANAGER (DEAMON),
> that will be with me communicate by MAILOV? Something how's too MANAGER for
> control this conference? Just SCRIPT would with me communicate by mail and
> he execute operations, according control word in transmiting body messages,
> or in mesage subject.
>
> Existig some SCRIPT on which I would teach it myself, or would enough the
> SCRIPT re-do? I don't have literature and with access on i-network with
> browser have I problem. I just starting with PHP. Thanks. ... kofi-SK.
If I understand you correctly, you want to be able to send mails (containing
certain instructions) to a server and have the instructions carried out?
This is certainly possible, most MTAs allow you to have addresses which
executes programs whenever mail is delivered to them. Refer to your MTA
documentation to see how such addresses can be setup then configure it
execute your php script. The contents of the mail are usually made available
on STDIN so your php script would have to read from STDIN and parse out the
instructions. Then depending on what your instructions are you can use exec()
and friends to execute them.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
If you have to ask what jazz is, you'll never know.
-- Louis Armstrong
*/