RE: [PHP] Working with email piped to PHP

2001-02-04 Thread James Moore
> # This is the standard input script. > > $fp = fopen("php://stdin","r"); > $writer_file = fopen("test.txt","w"); > fwrite($writer_file,"$fp"); > fclose($writer_file); > fclose($fp); > > ?> > > As stated, it does create the test.txt in the specified location, > however, > upon inspection of the

[PHP] Working with email piped to PHP

2001-02-04 Thread Roy Wilson, Jr.
Ok, I've got an email address setup to pipe to a PHP script setup to handle the request and do whatever I need to. (In my specific situation, it's a help email address, and will create a ticket in a database.) As a test, I'm opening the STDIN data stream and writing it to a file to make sure