Re: Uploading by email

From: Date: Tue, 26 Aug 2003 08:06:10 +0000
Subject: Re: Uploading by email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160737@lists.php.net to get a copy of this message
In article <OLECLCPPBLAAHPKBKILKCEMDCHAA.wouter@esctoday.com>, wouter@esctoday.com says... > Hi, > > I know it's slightly not totally about PHP.. but since I wanna do it with > PHP, i'll post it here. I was wondering if anybody can help me to accomplish > the following: > > - Somebody sends an email to, for example, fotoupload@esctoday.com. This > email has some attachments, being photo's to be added to some system. > - Sendmail recievers the email, and sends it to some PHP script > - This script parses the input it gets, ... > > Now, what would I need to do for all this to happen? > Wouter > An alias in sendmail to pipe mail to 'fotoupload' to your php script, and the command line version of php available to run the script should be a start. The alias will look something like: fotoupload: "| /full/path/to/yourscript.php" Cheers -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#160737) next »