title: how to get the url of the current page using php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/189113/how-do-i-get-current-page-full-url-in-php">How do I get current page full URL in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>How can i get url of the current page using php? Is there any such php function?</p>
  
  <p>What i want to achieve is:</p>
  
  <ol>
  <li>Somehow get the url of the current page</li>
  <li>check if the url is equal to some preset value</li>
  <li>if it is equal then echo something else echo something else </li>
  </ol>