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? 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. 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 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. 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 Link to comment https://forums.phpfreaks.com/topic/272457-sitemap-name/#findComment-1401892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.