Mobile phone picture on to website
Moderator: General Moderators
Mobile phone picture on to website
Hi there everyone, hope you are all OK?!
I'm after abit of help if anyone is able to...
I'm after knowing if anyone knows of a way to make it so users can send a picture they have taken on their mobile phone and send it to the site so it can be displayed on it.
I'm unsure how it can be done although I'm guessing thata script that can check emails to see if there is one with an attachment and then pull the picture from it is goign to be part of the process?
The picture (MMS) is going to have to be sent from the mobile to a specified email address and then script run say every hour to be taken to databse and then to site.
This is too complicated for me to do so if anyone can help or point me in the right direction I'd be very gratefull!
Ccheers
Wardy
I'm after abit of help if anyone is able to...
I'm after knowing if anyone knows of a way to make it so users can send a picture they have taken on their mobile phone and send it to the site so it can be displayed on it.
I'm unsure how it can be done although I'm guessing thata script that can check emails to see if there is one with an attachment and then pull the picture from it is goign to be part of the process?
The picture (MMS) is going to have to be sent from the mobile to a specified email address and then script run say every hour to be taken to databse and then to site.
This is too complicated for me to do so if anyone can help or point me in the right direction I'd be very gratefull!
Ccheers
Wardy
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
for the email stuff i think php mailer can do that for you
http://phpmailer.sourceforge.net/
then it would be simple to use getimagesize(); to make sure that the attachment is a picture then copy() that to a folder on your website then just run a quick query to update your table with the path to the new image and whatever else.
use a cron job for linux or scheduled task for windows to get this script to run once every hour or whatnot.
all in all this sounds like a really cool project - good luck
http://phpmailer.sourceforge.net/
then it would be simple to use getimagesize(); to make sure that the attachment is a picture then copy() that to a folder on your website then just run a quick query to update your table with the path to the new image and whatever else.
use a cron job for linux or scheduled task for windows to get this script to run once every hour or whatnot.
all in all this sounds like a really cool project - good luck
This page should help you out lots:
http://www.linuxscope.net/articles/mail ... tsPHP.html
http://www.linuxscope.net/articles/mail ... tsPHP.html
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
You've just done all of that Grim?Grim... wrote:Yeah, I hit refresh on my script right after I posted that and 'ping'
I've now finished my script, basically it takes an email from a user with an image attached, resizes and saves the image, takes the subject as the images title and the body as the images description.
Awesome
Does it work with webmail based programs too?
By any chance would you mind sharing it or I could pay you for it if you like?
Cheers
Wardy