> > I'm sure this question has been visited before, but I've had some troubles > searching through > the archives. > > This is at least a two part question. > > I wish to use a pipe instead of the pop3 class, because I wish the email to > start the script > instead of waiting for a cronjob. > > 1) The pipe itself: > On a cPanel server, I wish to setup an email address with a pipe like: > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> : > |/home/account/public_html/mailtools/emailscript.php
I would read the data from the pipe with STDIN: $fp = fopen("php://stdin", "r"); while(!feof($fp)) $buffer .= fgets($fp, 4096); fclose($fp); > This always gives me an error saying it cannot foraward. > > If I pipe it to "|/usr/bin/php > /home/account/public_html/mailtools/emailscript.php" > it tells me: "No input file specified." I use something like that in my .procmailrc: :0 fw | /usr/bin/spamassassin :0 * ^X-Spam-Status: Yes { :0 c | $HOME/.spamassassin/spamcop.php :0 spam } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php