Hello,
I need some advice on the best practices for the following. Currently in my database I store a link to a text file on the same server. Each record has a corresponding text file, they're actually checksum files. The directory that holds these text files is 10 MB, so quite a few. I'd like to be able to write a php page to prompt the user for a checksum, then bring back the corresponding record in the database.
My thought is that I should redesign my database to hold the contents of the file instead of a link to the file. Two questions:
1) Is the best practice to store these as text fields in my database, or blob data?
2) Is there an easy way to automatically read the information for the ~2500 records and files currently on the system? I'm guessing I should build a php page just for migrating the data - show the user (me in this case) the record, the file, and the new record with the file contents, then save and go to the next one, 2500 times....
Thanks for your thoughts!