Friends! while editing a lot of PHPBB and Wordpress templates and scripts, i came to know that php has a function of Including another page into the page where php script is placed. I want to use the same in my site to make my life easier. I know it is simple for PHP coder, so i request you to please help me in this regard. My site's homepage is:
The PHP code mentioned above in the CODE will include a page (HTML or .PHP, whatwver you say) and that page will contain a list (<li>) with links. The same script will be used on all the pages and it will link to all the pages on my site.
I want this because it will make the editing of site easier. I will just edit the included file and add another link and then just make another page, and its done, whole site is edited.
I think you now got my point. Please help me in this regard.
Also tell me how it works.
Thanks
| Code: |
| <html>
<head> <title>Site Title is here</title> </head> <body> <table> <tr> <td class="list"><?php /*the code is to come here.*/ ?></td> <td class="main">The content of relevent page will come here.</td> </tr> </table> </body> </html> |
The PHP code mentioned above in the CODE will include a page (HTML or .PHP, whatwver you say) and that page will contain a list (<li>) with links. The same script will be used on all the pages and it will link to all the pages on my site.
I want this because it will make the editing of site easier. I will just edit the included file and add another link and then just make another page, and its done, whole site is edited.
I think you now got my point. Please help me in this regard.
Also tell me how it works.
Thanks
