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];
  4. //$filename will display your file no matter how deep the url

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.