title: PHP: Redirect to the same page, changing $_GET
body: <p>I have this PHP piece of code that gets $_GET['id'] (a number) and do some stuff with this.
  When its finished I need to increase that number ($_GET['id']) and redirect to the same page but with the new number (also using $_GET['id']).</p>
  
  <p>I am doing something like this:</p>
  
  <pre><code>$ID = $_GET['id'];
  
  // Some stuff here
  
  // and then:
  
  $newID = $ID++;
  
  header('Location: http://localhost/something/something.php?id='.$newID);
  exit;
  </code></pre>
  
  <p>The problem here is that the browser stop me from doing it and I get this error from the browser (Firefox) : "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."</p>
  
  <p>Some help here please!</p>
  
  <p>NOTE: Some people suggested to do an internal loop, I mean a simple 'for' loop, but when i do this I get a time limit error (60 seconds) because the loop will take more time to finish..</p>