Code: Select all
<?
$currenturl = $_SERVER["PHP_SELF"];
if ( $_SERVER['QUERY_STRING'] <> '') {
$currenturl .= "?" . $_SERVER['QUERY_STRING'];
}
$currenturl = 'http://' . $_SERVER["SERVER_NAME"] . $currenturl;
$currenturl = str_replace(":", "%3A", $currenturl);
$currenturl = str_replace("/", "%2F", $currenturl);
$currenturl = str_replace("&", "%26", $currenturl);
?>
Code: Select all
<?echo
$currenturl;?>
The PHP code works fine when it is not in CMS made simple. I really love this software, but if I can't get php includes to work, I can't use it. Thanks so much for working so hard to create this - I've been looking for months now, and this is so simple to use! Just what I wanted (except for the PHP problems)!