Uploading Images.. to MySQL or Directory??
Moderator: General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Uploading Images.. to MySQL or Directory??
I am writing a script for car reviews that allows people to review the car they purchased and optionally upload a picture of their car. Should I have the uploaded picture go to the MySQL database or should I have it uploaded as a file to a directory? I have heard various opinions on which method is preferred, but still am clueless as to which I should use and why. It would seem easiest to just store it in the MySQL database as it would allow for easier retrieval/storage, but I really don't know so I thought I would ask you guys. Thanks!
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Regarding what you said in the linked post about placing the uploaded files in a .htaccess password protected directory...
Does the password protected directory have any effects on any of the php work being done? In other words, as far as coding, can I just act as if this particular folder IS NOT password protected? Or do I have to hard-code the user/pass for this directory within the php? Thanks!
Does the password protected directory have any effects on any of the php work being done? In other words, as far as coding, can I just act as if this particular folder IS NOT password protected? Or do I have to hard-code the user/pass for this directory within the php? Thanks!