#Get the current page url in php #https://codepad.co/snippet/899f0f /* get the current page url in php */ <?php echo $_SERVER['SCRIPT_NAME']; /* Global variable in php */ ?>