Re: Piping new email to a PHP file

From: Date: Sun, 23 May 2004 05:52:13 +0000
Subject: Re: Piping new email to a PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186784@lists.php.net to get a copy of this message
On Sun, May 23, 2004 at 03:59:54AM +0100, John wrote: > Hi, > I'm sorry if this has been asked many times before but how do I pipe new > email to a file instead of to a mailbox? I tried adding an alias to a file, > but it bounced and said 'Can't write output', then I tried to pipe it to a > program (the php interpreter) like this "|php /home/php-script.php" > and that didn't work either. try the full path: |/usr/local/bin/php /home/php-script.php or, if using qmail, | /var/qmail/bin/preline /usr/local/bin/php /home/php-script.php use 'which php' to find the path to php -Mark

« previous php.general (#186784) next »