variable transmission with GET and POST method

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
orangeapple
Forum Commoner
Posts: 70
Joined: Tue Jan 06, 2004 1:24 pm
Location: Geneva / Switzerland

variable transmission with GET and POST method

Post by orangeapple »

Hi there !

i was wondering how many variables can be transmitted at once from a php file to another with GET or POST method.

Does anyone know ?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

In IE, a URL can't be more than 2083 ( http://support.microsoft.com/default.as ... US;Q208427& ) characters, so that is the limit for $_GET. This is only a browser limit though, not a PHP limit

Mark
User avatar
orangeapple
Forum Commoner
Posts: 70
Joined: Tue Jan 06, 2004 1:24 pm
Location: Geneva / Switzerland

Post by orangeapple »

does this mean that php can transmit an unlimited number of variables from a file to another if the file is not 'echoed' ?
ilovetoast
Forum Contributor
Posts: 142
Joined: Thu Jan 15, 2004 7:34 pm

Post by ilovetoast »

Not unlimited. I'm not sure if their is a hard cap on the number or if it is only restricted by process memory and script timeouts/browser timeouts.

The most I've ever had occassion to pass a couple dozen or so in a large form. Never ran into any trouble.

peace
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

i think rfc2616 will tell anything you wanted to know ;)
Post Reply