RE: [PHP] Re: Store uploaded files in MySQL-BLOB
| From: | Ben Bleything | Date: | Tue, 10 Jul 2001 15:01:36 +0000 |
| Subject: | RE: [PHP] Re: Store uploaded files in MySQL-BLOB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57161@lists.php.net to get a copy of this message | ||
This won't work if they're binary files. Also, for most binaries, it's
better to use LONGBLOB... much more flexibility. But there's a bunch of
stuff to tweak to get it to work.
http://www.phpbuilder.com/columns/florian19991014.php3
has details.
Ben
-----Original Message-----
From: Adam [mailto:adam@wangallery.com]
Sent: Tuesday, July 10, 2001 3:20 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Store uploaded files in MySQL-BLOB
I would suggest setting the database column to LONGTEXT instead of BLOB
since it can accomidate far more characters per entry.
As for the entry to the database through php, I'm not entirely sure what
method you're using to add these. Are they uploading their file and then
it
reads it as it exists on the server? Is it supposed to read a file they
specify with a browse but never actually upload it anywhere? It might be
better to just include a text field for them to cut+paste to in a form
if
it's nothing but text.
-Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net