+ 1
How to get current PHP page name ?
hello Sololearn,How to get current PHP page name For example: I'm on page "mypage1.php", so i need to set this page name to variable pageName,smth like that : $pageName = getPageName;
2 odpowiedzi
+ 2
You can get the file name of the current page with basename($_SERVER['PHP_SELF']);
+ 1
thank