title: How do you recieve your current php file url
body: <p>I want to make navigation easier, so lets say when i have page called </p>
  
  <pre><code>http://test.nl/admin/xxx.php?id=423
  </code></pre>
  
  <p>if i want to redirect to the same page with a different parameter. i can do </p>
  
  <pre><code>Header("Location: xxx.php$rest");
  </code></pre>
  
  <p>but is there a way to get the xxx.php dynamic?
  i tried $_SERVER[PHP_SELF] and it worked on localhost but not on my server.
  I get: <a href="http://test.nl/test.nl/admin/xxx.php?id=423" rel="nofollow">http://test.nl/test.nl/admin/xxx.php?id=423</a></p>