You are here: Re: Cell Phone Camera upload scripts? « HTML « IT news, forums, messages
Re: Cell Phone Camera upload scripts?

Posted by Toby Inkster on 11/10/05 10:00

Travis Newbury wrote:

> Most Cell Phone camera's allow you to send your images to an email
> 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)?

I actually did something much like this once upon a time.

Firstly, go get pop3cat. It will save you some time.
http://tobyinkster.co.uk/Software/pop3cat.txt
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.

Good luck!

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация