WordPress Hosting
Free Photos
WordPress Themes

get the current page url in php

/* get the current page url in php */ <?php echo $_SERVER['SCRIPT_NAME']; /* Global variable in php */ ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.