Re: Qmail / PHP question

From: Date: Thu, 14 Nov 2002 03:36:31 +0000
Subject: Re: Qmail / PHP question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124376@lists.php.net to get a copy of this message
If I remember correctly (it's been a while) the contents gets passed through STDIN to in this case wget, it'd be better to call the script as: |/usr/bin/php -q /path/to/script.php or put: #!/usr/bin/php at the top of your script and call as: |/path/to/script.php and use: (i forget the exact path, but something along these lines) $fp = fopen('php://stdin', 'r'); to read the email. -js Mike D wrote: > Hello, > > I am using qmail and am attempting to have an email trigger a php script > and process the contents of the email upon receipt. > > I have created the .qmail-address file which contains the following: > |/usr/bin/wget -q http://www.domain.com/script.php > > The part I a stuck on is how to pass the contents of the email to the > php script... > > Thanks in advance! > mike D >

« previous php.general (#124376) next »