Hello Stan,
Thanks for your reply and information.
I would like to try and modify the loader.php and see what happens, it doesn't matter as I backup the site and copy any files I modify!
But I am not a PHP expert, so have searched for more info and came up with this article:
http://www.dreamincode.net/forums/topic ... ious-page/In here Greg suggests putting the following code in the document header:
- Code: Select all
// SET REFERRER
function strleft($s1, $s2) {
return substr($s1, 0, strpos($s1, $s2));
}
function selfURL() {
if(!isset($_SERVER['REQUEST_URI'])) {
$serverrequri = $_SERVER['PHP_SELF'];
}
else {
$serverrequri = $_SERVER['REQUEST_URI'];
}
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
$_SESSION['ref'] = $protocol."://".$_SERVER['SERVER_NAME'].$port.$serverrequri;
}
selfURL();
And I think putting the following in the loader.php file:
- Code: Select all
header("Location: " . $_SESSION['ref']);
My question is, which document does the first code go in (basket.html.php) and where and where does the second code go...?
My other question is, if I don't know how to do this myself should I go away and learn PHP and come back later...!!!
Totally understand if I'm asking too much now as this is PHP problem.
Best
Paul