Get Referring Page


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.