title: Get the previous page name in PHP (not the entire URL)
body: <p>I have a URL like this;</p>
  
  <p><a href="http://www.mydomain.co.uk/blist.php?prodCodes=NC023-NC022-NC024-NCB33&amp;customerID=NHFGR" rel="nofollow">http://www.mydomain.co.uk/blist.php?prodCodes=NC023-NC022-NC024-NCB33&amp;customerID=NHFGR</a></p>
  
  <p>Which i grab using HTTP Referrer.  The trouble is i only need the page name i.e. blist.php from the link, not the entire URL as is default using:</p>
  
  <pre><code>$_SERVER['HTTP_REFERER']
  </code></pre>
  
  <p>Can anyone give me an idea on how to grab that part of the URL?</p>