How to upload image after retrieve from mysql using php?
Kamal
2012-08-13 03:27:03 UTC
I want to upload the retrieved image from mysql using php. The images are retrieved and showing on a particular page but I want to store these images on web server to a particular folder dynamically.
Three answers:
Prashant
2012-08-13 04:14:45 UTC
Watch this YouTube video tutorial on How to upload image using php.
PHP Tutorials: Uploading/Storing an Image inside a MySQL Database (Part 1)
http://www.youtube.com/watch?v=CxY3FR9doHI
PHP Tutorials: Uploading/Storing an Image inside a MySQL Database (Part 2)
http://www.youtube.com/watch?v=vFZfJZ_WNC4
?
2016-12-18 15:03:26 UTC
Upload Image To Mysql
Vahid
2012-08-13 22:17:28 UTC
PHP file functions (specially copy() for your subject) can do this for you.
See following link from PHP help. If you have ftp (or any file transfer protocol) access to your webserver, then you can do this easily:
http://www.php.net/manual/en/wrappers.php
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.