I cannot post large text data to SQL in php

时间:2017-08-05 11:52:36

标签: php sql-server

i have created a form in html containing text area and input and submit button. Now i want to post large text data to SQL varchar max 8000 but it fails and accept only small amount of text.

2 个答案:

答案 0 :(得分:1)

It depends on a server configuration. If you're working with PHP under Linux or similar, you can control it using .htaccess configuration file, like so:

set max post size

php_value post_max_size 20M

答案 1 :(得分:1)

See php.ini file, I'm have this error with XML sending, php have a limits to post data. Change line php_value post_max_size = 30M in configuration file