title: How long can a URL query argument be?
body: <blockquote>
    <p><a href="http://site.com/?status=4387hg843hg89473gh87934h89g734hg8973hg9873hg8973h4987g3h489g7h89h849g5">http://site.com/?status=4387hg843hg89473gh87934h89g734hg8973hg9873hg8973h4987g3h489g7h89h849g5</a></p>
  </blockquote>
  
  <p>What's the maximum size of <code>status</code> that PHP can read?</p>
  
  <p>I want to pass error / success messages upon login or signup, and the only way I can do this is by redirecting to a URL and append the messages as arguments to that URL.</p>
  
  <p>like:</p>
  
  <pre><code>&lt;?php
  
   $errors = array(
     1 =&gt; 'Password must have between 6 and 20 characters',
     2 =&gt; 'User name must contain only A-Z, a-z and 0-9 characters',
     3 =&gt; 'Captcha code does not match',
   );
  
   $errors =  base64_encode(serialize($errors));
  
   header("Location: http://www.example.com/?status={$errors}");
   die();
  </code></pre>
  
  <p>(if you know different ways of doing this please tell me ;)</p>