title: Redirect to specified URL on PHP script completion?
body: <p>How can I get a PHP function go to a specific website when it is done running?</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;?php
    //SOMETHING DONE
    GOTO(http://example.com/thankyou.php);
  ?&gt;
  </code></pre>
  
  <p>I would really like the following...</p>
  
  <pre><code>&lt;?php
    //SOMETHING DONE
    GOTO($url);
  ?&gt;
  </code></pre>
  
  <p>I want to do something like this:</p>
  
  <pre><code>&lt;?php
    //SOMETHING DONE THAT SETS $url
    header('Location: $url');  
  ?&gt;
  </code></pre>