It isn’t too long into your web development career before you get to a point where you can store and retrieve plain-text data in your sleep. Being strong in this area is important, as plain text is the most commonly stored data format. However, there are situations in which storing and retrieving binary data is useful, too. In this article, Larry Ullman explains exactly how you can do that using PHP and MySQL, and why you would want to.
Databases are simply warehouses for information: a reliable place to put, and later fetch, data. Most of the time, the stored information will be in a plain-text format. Just the characters on your keyboard are sufficient to represent:
- Numbers
- Strings (i.e., characters and longer text)
- Dates and times