Re: [PHP] Piping new email to a PHP file

2004-05-22 Thread raditha dissanayake
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 

Which mail server are you using?
|php /home/php-script.php
and that didn't work either.
 

this seems correct but there may be other issues such as permissons that 
come into the picture. if you are using qmail as your MTA you will find 
loads of sample if you include '.qmail' or 'dot-qmail' in your search query.


--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Piping new email to a PHP file

2004-05-22 Thread Mark Pecaut
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php