I need to modify my function to return also the current folder I am in. Here is my current function:
function getLinkFromHost($url){ $port = $_SERVER[\
Probably you also want to include get vars into your url, so you should add something to highphilosopher function...
$current_url = rtrim(curPageURL(), "/").(!empty($_GET)) ? "?".http_build_query($_GET) : "";