title: How to include php file instead of url in php redirect
body: <p>Instead of such regular redirect:</p>
  
  <pre><code>&lt;?php
    header('Location: http://domain.com');
  ?&gt;
  </code></pre>
  
  <p>...I need to call the URL in from another php file instead of <a href="http://domain.com" rel="nofollow">http://domain.com</a>, so something like that:</p>
  
  <pre><code>&lt;?php
    header('Location: &lt;?php include("file.php");?&gt;');
  ?&gt;
  </code></pre>
  
  <p>File.php has the right url in it (generated with API code). But it doesn't read the php code in php redirect. How to make it work?</p>