Re: [PHP] Pipe To A Program

2011-11-12 Thread Stuart Dallas
f a monster :) -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > -Original Message- From: Stuart Dallas > Sent: Saturday, November 12, 2011 6:21 AM > To: Ron Piggott > Cc: php-general@lists.php.net > Subject: Re: [PHP] Pipe To A Program > > On 12 Nov 2011, at 07:

Re: [PHP] Pipe To A Program

2011-11-12 Thread Stuart Dallas
On 12 Nov 2011, at 07:38, Ron Piggott wrote: > I am looking at CPanel’s “E-Mail filtering” option “Pipe To A Program” > http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/FilterOptions > > The goal I am working towards is saving the contents of an incoming e-mail > address into a

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 5:12 AM, Ron Piggott wrote: > > > I used your code and it still didn't work.  Would you show me what you put > in for your Pipe To A Program settings? > > What I used is: > > Rules: "To" "Contains" customer service e-mail address > > "Action" > /usr/local/bin/php /path/to/e

Re: [PHP] Pipe To A Program

2011-11-12 Thread Ron Piggott
know the rule is working because I receive an empty e-mail, just not passing the e-mail content Ron Piggott www.TheVerseOfTheDay.info -Original Message- From: tamouse mailing lists Sent: Saturday, November 12, 2011 4:04 AM To: Ron Piggott Cc: php-general@lists.php.net Subject:

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 1:38 AM, Ron Piggott wrote: > Does anyone know what variable the e-mail message is assigned within the > context of “Pipe To A Program”?  Is there a way to find out?  I can’t figure > this out. > > What I have tried so far is below: > > === > #!/usr/local/bin/php -q > >

[PHP] Pipe To A Program

2011-11-11 Thread Ron Piggott
I am looking at CPanel’s “E-Mail filtering” option “Pipe To A Program” http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/FilterOptions The goal I am working towards is saving the contents of an incoming e-mail address into a mySQL table. I am thinking of trying to program a cust

RE: [PHP] Pipe an email to PHP

2003-08-30 Thread Thomas Tremain
I resolved my problem several days later, and I thought I might post it for those that come up behind me. I had several blank lines in my .php file after the closing ?> This caused an output of the script (even though I could not see it) which generated the failure notice within Exim. Thomas

RE: [PHP] Pipe an email to PHP

2003-08-27 Thread Thomas Tremain
I am actually real close now... Thanks to your help. The email pipes to the PHP, and I get an email response from PHP so I can look at output. However, I still get a non-delivery message at the same time: == This message was created automatically by mail delivery sof

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread Marek Kilimajer
Is emailtest.php executable, does it start with #!/usr/bin/php, is $HOME set? Thomas Tremain wrote: I have attempted to create a .procmailrc that looks like: :0 * [EMAIL PROTECTED] | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following add

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread David T-G
Thomas -- ...and then Thomas Tremain said... % % I'm sure this question has been visited before, but I've had some troubles % searching through % the archives. What sort of trouble? Just trouble finding a helpful answer, or actual trouble performing a search? % % This is at least a two pa

RE: [PHP] Pipe an email to PHP

2003-08-27 Thread Thomas Tremain
I have attempted to create a .procmailrc that looks like: :0 * [EMAIL PROTECTED] | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following address(es) failed: [EMAIL PROTECTED] Can I be sure Procmail is even handling my email? I thought Exim

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread Greg Donald
> > 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

[PHP] Pipe an email to PHP

2003-08-26 Thread Thomas Tremain
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 itse

Re: [PHP] Pipe $var to a shell command

2003-06-13 Thread Leif K-Brooks
If $myoutput is "foo", it will attempt to get input from a file named "foo". Use "command | $myoutput" instead. Tim T wrote: I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybo

[PHP] Pipe $var to a shell command

2003-06-13 Thread Tim T
I have a mem var $myoutput I would like to pipe it to the input of a shell_exec command. I tried shell_exec("command < $myoutput") however this is not quite right. Anybody have any ideas?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pipe broken

2003-03-28 Thread Benja
Oups... I missed that "register_shutdown_function" function. Thanks Marek. Benja. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Manual -> Features -> Connection handling Benja wrote: >Hi all, >is it possible to know in PHP if the client hit the stop button or cl

Re: [PHP] Pipe broken

2003-03-28 Thread Marek Kilimajer
Manual -> Features -> Connection handling Benja wrote: Hi all, is it possible to know in PHP if the client hit the stop button or close the browser ? Here is what I read on a forum : I was told you cannot when I asked 'way back when. When the user hits stop, the pipe is brok

[PHP] Pipe broken

2003-03-28 Thread Benja
Hi all, is it possible to know in PHP if the client hit the stop button or close the browser ? Here is what I read on a forum : > I was told you cannot when I asked 'way back when. > > When the user hits stop, the pipe is broken. > Apache will attempt to spit out some more data,

Re: [PHP] Pipe

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 19:32, Ken Tossell wrote: > What var is the piped data placed in? > > Php 4.1 executable rhlinux 2.4.17 I'm gonna assume that you mean that you're doing something like this: % cat somefile.txt | script.php In which case, you'd need to fopen() the file 'php://stdin' and re

[PHP] Pipe

2002-03-03 Thread Ken Tossell
What var is the piped data placed in? Php 4.1 executable rhlinux 2.4.17 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pipe email to php?

2001-11-24 Thread Kunal Jhunjhunwala
Hey, Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe email to a php script? Ive already setup the valias.. the big question is, how to process the info when the email comes in.. kunal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] pipe email to php?

2001-11-24 Thread John S. Huggins
The forum PHP program package Phorum has something like this available. I believe it is a file called phorummail.php. I remember using it as a basis for another program and it really does a good job of indentifying and splitting headers and body of emails into assorted variables. On Sun, 25 Nov

Re: [PHP] pipe email to php?

2001-11-24 Thread Michael Geier
The real question is why? What is the purpose of piping the email to a PHP script? Are you trying to insert emails into a database? Are you trying to deal with emails automatically based on subject? Are you trying to deal with emails from a specific source? The answers to these questions will c

[PHP] pipe an email

2001-05-22 Thread Attila Strauss
hi all, could someone help me with this prob ... i wanna pipe an emails' sender, subject and body ... ( mailalias --> programm(script) ) any ideas how this could be done the *best* way? #!/usr/local/bin/php -q ---