Ok.. I have a alias setup to send email to a script I made.. It does hit the script.. I can see it both in the logs.. and the file it rights out.. But the email is not in the argv[*]..
How do I access/handle a email piped into a php shell script..
When you pipe something into a process, it shows up as stdin to that process, not as a command-line argument. Try opening "php://stdin" for reading, and see if that contains the data you expect.
I have tried stdin... and get bad results
cat /var/log/messages | output.php works.. reading from stdin
But if I point a alias to output.php It never stops looping takes up mass memory and dies... no output though..