1

I have a problem with textarea - when I paste more than 65000 characters and I try to print this $_POST['value'] on screen - I get "NULL" - $_POST['value'] doesn't exist. When I paste ~55000 characters - everything is OK and I can see the characters when I try to print this POST array.

Why I can't paste more than ~65000 characters? When I try do it on another web server - everything is OK, so I think I have some limit, but where and how I can manage this limit ?

Jason
  • 15,017
  • 23
  • 85
  • 116
Majkson
  • 227
  • 4
  • 15
  • 1
    Check your webserver config - dependent on which you use you need to change the maximum body size. [You also need to make sure that `max_post_size` is a decent value](http://stackoverflow.com/a/2364875/247893). – h2ooooooo Apr 09 '16 at 18:46
  • Possible duplicate of [how to increase apache 2 uri length limit](http://stackoverflow.com/questions/2586339/how-to-increase-apache-2-uri-length-limit) – Dinidu Hewage Apr 09 '16 at 18:51
  • OK, so what I should add to .htaccess if I would like to add 100.000 characters in textarea ? – Majkson Apr 09 '16 at 18:58
  • @Dinidu method is `POST`, so URI length doesn't matter. – Jigar Apr 09 '16 at 19:15
  • @Dinidu POST is not sent in the URL, so it's not a duplicate of that question. – David Ferenczy Rogožan Apr 09 '16 at 19:17

1 Answers1

1

You need to fix your post_max_size. In your .htaccess file, add the following:

php_value post_max_size 20M

This will allow the data sent with at POST request to be up to 20 MB (megabytes).

David Ferenczy Rogožan
  • 23,966
  • 9
  • 79
  • 68
T0xicCode
  • 4,583
  • 2
  • 37
  • 50