PHP video Photo Upload avatar function Implementation code share, PHP avatar
If you want to implement video capture in PHP we need to use the Flash plug-in, Flash shot really photos we then through the PHP $globals [' Http_raw_post_data '] accept
Demonstration, relatively humble, not strange, the method is simple!Input is clicked after the default appearance of photos, documents and other options, you can take photos upload, you can also choose the library file upload, you can also record
Php implements the instance code of the video photo Upload Avatar function. If you want to implement video photography in php, you need to use the flash plug-in. after taking a photo from flash, we can use php's $ GLOBALS [HTTP_RAW_POST_DATA] to
The upload form does not need to be specially processed when using the upload function in ThinkPHP. For example, the following is a form submission with an attachment: formactionindex. phparticipant
How can I use my mobile phone to take a photo and upload an avatar? The reason is very simple, that is, data transmission. First, the mobile phone transmits the photo information, neither post transmission nor get function transmission. This is
How can I use my mobile phone to take a photo and upload an avatar? The reason is very simple, that is, data transmission. First, the mobile phone transmits the photo information, neither post transmission nor get function transmission. This is
Let's start with a simple one:
Copy the Code code as follows:
Http://www.jb51.netClass upload{Public $length; Limit file Sizepublic $file; Determine if this class is for image upload or file uploadPublic $fileName; FilenamePublic $fileTemp;
Php image upload code. Let's make it simple: Copy the code as follows :? Www. jb51.netclassupLoad {public $ length; the file size is limited to public $ file; it is easy to determine whether this class is used for image upload or file upload:
The
If you want to implement video photography in php, you need to use the flash plug-in. After taking a photo from flash, we can use php's $ GLOBALS ['HTTP _ RAW_POST_DATA '] to accept the data, save it as an image. I will introduce it below.
How can I
More Upload class usage can be completed by setting Upload parameters, which is left for you to explore. Get the upload class ThinkPHP extension provides the file upload class library UploadFile, can be in http://www.thinkphp.cn/extend/224.html
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.