I want to do things on an image uploaded by the user.
Until now, what I do is:
move_uploaded_fileimagecreatefrompng
How can I manipulate it without saving it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When the file is uploaded, it has to be stored somewhere in the server’s
/tmp/folder. Simply load your image from there using$_FILES['name']['tmp_name'].For example:
Will load the uploaded file (called
blarg) from it’s temporary storage place under something like/tmp/php-12bja. You don’t need to callmove_uploaded_file(), and the image doesn’t need to be saved to disk.