Posted By

kidmizere on 10/17/11


Tagged

page name referrer


Versions (?)

Get Referring Page


 / Published in: PHP
 

  1. $path = explode('/', $_SERVER['HTTP_REFERER']);
  2. $filename=$path[count($path)-1];
  3.  
  4. //$filename will display your file no matter how deep the url

Report this snippet  

You need to login to post a comment.