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'];
{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'];
take @ information here: http://php.about.com/od/learnphp/qt/_server_php.htm , see if using
$_server['request_uri'] helps
$_server['request_uri'] helps
Comments
Post a Comment