Get current page in php

8/02/2022  •  221 views
 
[code]
<?php
$phpPage = basename($_SERVER['PHP_SELF']);
if ($phpPage == 'index.php') {
$Title = 'Home';
}
else {
$Title = 'Page';
}
?>
[/code]
 English / Indonesian