RE: [PHP-DB] storing files in database
| From: | Beverly Steiner | Date: | Tue, 18 Mar 2003 18:08:12 +0000 |
| Subject: | RE: [PHP-DB] storing files in database | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-26447@lists.php.net to get a copy of this message | ||
Michiel,
You could try storing them in the longtext (text) or longblob (binary)
fields. Search at www.mysql.com for more information about the differences
between them. Unless you need to search on the data within MySQL, storing
files (especially long ones) in the database usually isn't the best
solution.
Bev
----------------------
Beverly Steiner
steiner277@charter.net
-----Original Message-----
From: Michiel van Heusden [mailto:michiel@aemulatio.nl]
Sent: Tuesday, March 18, 2003 8:25 AM
To: php-db@lists.php.net
Subject: [PHP-DB] storing files in database
is there any possibility using PHP 4 to store entire files as a database
field in a MySQL database?
and if so, does anybody know a way, or a tutorial describing this?
thanks
michiel
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php