images: blob or dirs?
Posted: Thu Feb 07, 2008 10:15 pm
New to PHP but here it goes:
I need to store images for this website. I thought to store all of it in the MySQL and use PHP to call those. I used blob, and tried to display the images, but for some reason I couldn't (forums suggested a header thing...).
But by browsing on forums, I found that lot of people suggest to store the images in dirs instead of mysql.
Ok, what's the best way to do so? Using mysql blob or dirs?
And are there any tutorials who can actually guide me in the coding of it?
I need to store images for this website. I thought to store all of it in the MySQL and use PHP to call those. I used blob, and tried to display the images, but for some reason I couldn't (forums suggested a header thing...).
But by browsing on forums, I found that lot of people suggest to store the images in dirs instead of mysql.
Ok, what's the best way to do so? Using mysql blob or dirs?
And are there any tutorials who can actually guide me in the coding of it?