title: How to get file name from url without $_GET variable?
body: <pre><code>http://localhost/mc/site-01-up/index.php?c=lorem-ipsum
  
  $address = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
  $stack = explode('/', $_SERVER["REQUEST_URI"]);
  $file = array_pop($stack);
  echo $file;
  </code></pre>
  
  <p>result - <code>index.php?c=lorem-ipsum</code></p>
  
  <p>How to get just file name (<code>index.php</code>) without <code>$_GET</code> variable, using <code>array_pop</code> if possible?</p>