How much data can be sent via $_GET in PHP5? Is there a maximum number of variables, string length etc? Thanks in advance.
Asked
Active
Viewed 3,180 times
7
-
possible duplicate of [HTTP URI GET limit](http://stackoverflow.com/questions/266322/http-uri-get-limit) – karim79 May 20 '10 at 11:03
-
Not a duplicate. URL posted has no mention of how much GET data PHP5 can handle. – BenTheDesigner May 20 '10 at 11:11
3 Answers
6
Although the specification of the HTTP protocol does not specify any maximum length, practical limits are imposed by web browser and server software.

Gaurav Srivastava
- 3,232
- 3
- 16
- 36

Stefan Gehrig
- 82,642
- 24
- 155
- 189
2
There is no limit defined in the RFC, but browsers limit the URL length (including get variables). IE for instance limits the URL length to 2083 characters, Opera about 4,050, Netscape 6 about 2,000 characters. A general rule of thumb is, that you shouldnt use more than 256 characters.

softcr
- 620
- 3
- 10