azraelGG Posted December 28, 2012 Share Posted December 28, 2012 is there any why to check on which site am i? i need check am i on index.php or not any idea how to check that? Quote Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/ Share on other sites More sharing options...
cpd Posted December 28, 2012 Share Posted December 28, 2012 Your question isn't clear. You've written two separate questions and not given a context in which your asking them. Provide both and you'll get a far better response. Quote Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/#findComment-1401884 Share on other sites More sharing options...
azraelGG Posted December 28, 2012 Author Share Posted December 28, 2012 i just need to check am i on specific page index.php Quote Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/#findComment-1401885 Share on other sites More sharing options...
cpd Posted December 28, 2012 Share Posted December 28, 2012 $_SERVER['PHP_SELF'] can be used to get the current page. Quote Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/#findComment-1401889 Share on other sites More sharing options...
azraelGG Posted December 28, 2012 Author Share Posted December 28, 2012 basename($_SERVER['PHP_SELF']) thanks for pointing me on right direction Quote Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/#findComment-1401892 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.