note 56218 added to function.move-uploaded-file

From: Date: Sat, 27 Aug 2005 15:54:39 +0000
Subject: note 56218 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-94263@lists.php.net to get a copy of this message
It should be fairly simple to read an image file from an email, because the file has already been base64_encoded and thus can be processed through "imagecreatefromstring" or similar functions. These should be the neccessary steps for solving your problem: 1.) Read the email file 2.) Spilt it into parts 3.) determine the correct part 4.) Read the part and 5.) create the image 6.) save it in a webserver directory Take a look at the different image functions at www.php.net/images! And there is also an experimental PHP extension for splitting mails into part-documents, called "mailparse" - just give it a try! HTH! ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56218 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56218&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56218&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94263) next »