On Wednesday 17 March 2004 07:54, Leonard B Burton wrote:
> Would someone be so nice to send me the code to just get it to do something
> (like update a counter or anything) simple that I will be able to tell if
> the email is getting to the script or not?
>
> My host has an option that allows you to easily make an alias [by way of an
> html form] that will send emails to certain files and I can not tell if it
> is not working or if my script is not working. I have tried to read around
> and could not figure it out. I wish I could RTFM but I cant find one. The
> few pages I found on the net do not give a good enough explaination.
Mail is usually passed to your program via STDIN, so:
$STDIN = fopen("php://stdin", "r");
$doo = fread ($STDIN, 1000000);
fclose($STDIN);
echo $doo;
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
BAD CRAZINESS, MAN!!!
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php