| | #1 |
| www.ecomstarterpack.com Join Date: 2013 Location: France
Posts: 249
Thanks: 48
Thanked 49 Times in 43 Posts
|
I want to store images on the server using php script, I want to know which way is better to store images using php? Thanks in advance, |
| |
| | #2 |
| Active Warrior Join Date: 2013 Location: AU
Posts: 57
Thanks: 0
Thanked 1 Time in 1 Post
|
There are two ways to store images on the server either using blob data type in mysql and by uploading to the folder and store path in mysql database
|
| |
| | #3 |
| SKT Wordpress Themes War Room Member Join Date: 2013 Location: Nagpur
Posts: 65
Thanks: 5
Thanked 28 Times in 11 Posts
|
Hello, Their are two things needs to do for storing images on server 1) Store image file name in mysql table 2) create one folder 'upload' on server and move image in it move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); |
| | |
| |
| | #4 | ||
| Warrior Member Join Date: 2011 Location: Dhaka, Bangladesh
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
I agree with sktthemes. It is the best way to store image. If you want to handle massive amount of image you can upload them into date based directory like
| ||
| | |||
| |
|
| Bookmarks |
| Tags |
| images, php, store |
| |