I am new to php and trying to learn it.
I am developing a website using <?php include(''); ?> function. Entire website is divided into 5 templates such as "meta.php","header.php","navigation.php","righ t-menu.php", "footer.php". Till now <title>, <meta keywords>, <meta description> are static and place manually. I want these information to be dynamic from a .xml file stored inside server.
I am already able to fetch <meta keywords> and <meta descriptions> using php "simplexml_load_file". I want <title> to appear according to page URL/page name.I have few sets of <title> for each individual page inside .xml file. As an instance,for http://www.examplesite.com/vocal-science.php I have "Vocal Science" string.
Is it possible to fetch individual keywords from .xml file according to page URL? This is the solution I am looking for desperately. Any example or any tutorial is appreciable.
Thanks in advance