I want to store a very long string in database using php.
The size of string is 43kb. But when I pass this string to a php variable it does not support. It is supporting 16379 charcters in one string. Wwhen I add a single character more, Dreamweaver indicates s syntax error on that line. How I can store a long string of 50,000 characters in php variable.
I want to store a very long string in database using php. The size
Share
You can store anything in a PHP string variable as long as you have enough memory to handle it.
43kb is not much as well as 16379 characters.
Dreamweaver (I’ll try to be nice), should just have it’s own memory limit, or is not used to handle such variable.
Didn’t you try to run the PHP script?
By the way, if you’ve such big data to store in variable, I really advise you to move it from your PHP script to a file.
Note that by default, PHP has a
memory_limitof 128MB, but you increase it.