Re: Limitations to variable length?
| From: | (Richard Lynch) | Date: | Wed, 12 Jul 2000 22:26:11 +0000 |
| Subject: | Re: Limitations to variable length? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6317@lists.php.net to get a copy of this message | ||
In article
<Pine.LNX.4.10.10007112121140.4029-100000@linux30.zdv.uni-tuebingen.de>,
steffen.wieschalla@student.uni-tuebingen.de (Steffen Wieschalla) wrote:
> I want to store images in a BLOB. So I have to store the data in a
> variable to give them to mysql_query().
> Are there limitations to the length of string variables in PHP?
Yes. You can only store as string as large as your available RAM.
> Or does someone know a better solution to insert images in BLOBs (mysql)
> uploaded by a form?
Store the file in the file system where it belongs. Store the path in MySQL.
There are numerous threads on this in the archives.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)