Many people facing this problem for many kind of situations like … create dynamic javascript or css menu.., navigation, hit counter… for page..
you can use set variable names for page. second good way is use this function for print page name $_SERVER["PHP_SELF"]
or if you want only page name than use this script
<?php $pagename=pathinfo($_SERVER["PHP_SELF"]); $pagename=$pagename["basename"]; echo $pagename; ?>
This is some more helpfull code…
$url = $_SERVER['REQUEST_URI'];
echo $url;
echo "<br>";
$array = explode("/",$url);
echo $array[2]; ///which folder would you want to access ?
echo "size of array = ".sizeof($array)."<br>";
URL unicode is another method for Creating Pretty or Clean Url and creating breadcrumbs






I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
This post makes a lot of sense !
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
This post makes a lot of sense !
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.