I have the following URL example:
I am pulling and can see the address bar info in an iFrame/page using:
echo "Referer: " . $_SERVER["HTTP_REFERER"] . "<br />";
//shows me the entire address: www.mysite.com/download/pdf.php?file=12345.pdf
I have also trimmed it down to this:
echo "Referer: " . basename($_SERVER['HTTP_RE
FERER']) . "<br />";
//shows me only pdf.php?file=12345.pdf
NOW MY QUESTION:
I want to return ONLY the '12345.pdf' variable information.
Normally I would simply use <?php echo $_GET['file']; ?> and be done with it. However, in an iFrame/page I cannot call it.