howto get current url to use in php script - Joomla! Forum - community, help and support


i have installed runphp plugin run php script on static content page. used runphp plugin include php page includes directory:

{runphp} include_once 'includes/energie.php';{/runphp}

the script running fine except 1 issue:

i need url of current page form. tried way:

$url = $_server['php_self'];


but way redirected wrong page.

any idea?

take @ information here: http://php.about.com/od/learnphp/qt/_server_php.htm , see if using
$_server['request_uri']  helps





Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???