Forum Moderators: coopster
I know the email initiates the script, because I have that script log it into a database.
Now, I'm trying to get the email's contents set as a variable to use in my script.
To do this I'm using STDIN, and this is my first time.
Right now I have a script that contains this line:
$fp=fopen("php://stdin","r");
The $fp variable when logged states "Resource id #6" when I'm expecting the contents of the email instead.
I've tried changing it to this (and similar varients):
$fp=fopen("php://stdin","r");
$file=fread($fp,1024);
What the $file variable logges is "". Nothing. I know that there should be something.
I can't get over this stumbeling block. Anyone have any ideas?
If it makes a difference, I'm using PAIR hosting.