... "If I run the following line only, I get a blank page, no output: "
<?
echo $_SERVER["HTTP_REFERER"];
?>
Well of course! lol. Don't you know what a referer is? The $_SERVER["HTTP_REFERER"] variable is only created if the script you are running has was started by someone clicking a hyperlink.
I.e. If I am on page "script1.php" and I click a link on that page that goes to "script2.php" then the $_SERVER["HTTP_REFERER"] will be the URL to the "script1.php" page.
If I just run the "script2.php" page on it's own without having came from somewhere, $_SERVER["HTTP_REFERER"] will be empty.
So of course if you just run that script that's what will happen. I meant try the echo after you've clicked a link to get to the script...
So, if you are on the page https://ssl.paytrack.com/cbank/4.cgi and you click a link to get to this script you are working on, it shouldn't redirect as that is the referer you are testing against.
Otherwise the page should redirect to http://www.translation.academy-life.com/index.htm. If it doesn't redirect for some reason (maybe there's a problem in the URL) then the page will just stop. (That's what the exit; statement does)
So that's why your page is producing no output if you are not coming from the https://ssl.paytrack.com/cbank/4.cgi page.
Make sense?
Good luck man.
-Adam 🙂