To get the current page URL that is shown in the browser URL window.
- Want to make include file with a function
- Create a link to the page itself
- Variable added with an querystring
Ex: You can now get the current page URL using the line: <?php echo curPageURL(); ?>
This is the method to return the current page file name. Using basename() function and
$_SERVER['PHP_SELF'] variable you can get current page name.