What is the current page?
-
I think I stumbled onto a function that will show what current page is loaded (index.php, single.php, etc.), but now that I actually need, I can’t find it anywhere.
This is what I’ve used in the past, but it’s pretty weird way to go about things.
// Get current page (easier way?)
$curstr = $_SERVER[‘QUERY_STRING’];
$curstr = explode(“&”,$curstr);
$curpage = explode(“=”,$curstr[0]);
$curpage = $curpage[1];Any help would be appreciated,
ThanksDimitry
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘What is the current page?’ is closed to new replies.