You can use following php code to get current url
<?=$current_full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";?>
this code will echo the current full url
All in one resource for most usable codes in programming in PHP, HTML, JS, CSS
<?=$current_full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";?>
0 comments:
Post a Comment