irfan khattak
irfan khattak

Reputation: 1

I cannot post large text data to SQL in php

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.

Upvotes: 0

Views: 258

Answers (2)

Andrey Mashukov
Andrey Mashukov

Reputation: 11

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

Upvotes: 1

Niranjan
Niranjan

Reputation: 45

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

Upvotes: 1

Related Questions