Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Cell Phone Camera upload scripts?
- Travis Newbury
November 9, 2005, 11:46 am
rate this thread
account. Does any know of an automated way that would allow someone to
send a phone to an email account, then have it automatically post on a
website in real time (or near real time say < 30 seconds)?
We had a very interesting request from an account that would like this
capability. No security required. Basically if you know this address,
you can upload an image in real time to it.
Re: Cell Phone Camera upload scripts?
Travis Newbury wrote:
I actually did something much like this once upon a time.
Firstly, go get pop3cat. It will save you some time.
pop3cat is a small Perl script that can be pointed at a POP3 mailbox,
which will print the contents of the mailbox to STDOUT and then exit.
Have cron run pop3cat and pipe the output to your own Perl script, which
can use MIME::Tools <http://www.zeegee.com/code/perl/MIME-tools/ to
parse the message and extract any attachments.
Your Perl script can then place the images in some "agreed" directory
(e.g. ~/public_html/autoimg/) and log the filename, sender, date and time
to a database table.
Your dynamic pages can then read the last N rows from the database table
and present them on the page.
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact