include file

PHP Include Files

In this tutorial, we are going to learn about PHP Include Files. This is a useful idea, you can able to include a PHP file to another PHP script or into your HTML source code on multiple pages of your system or website. For short, this function analyze and work in a specific file.

Social Networking Site: Reusing of Codes using PHP Include

In this tutorial I'm going to show you how to reuse of codes using PHP includes, this including of files saves a lot of work. Since we are using a standard Header and Footer this is the best time to apply this concept. So that later on, if you need to update the header you can simply update the header include file not all the pages that has same header. To start with tutorial, open first our project called “philsocial”.

PHP include

In PHP, it is necessary to use PHP include command. Because include takes a file name and simply inserts that file content into the script that issued the include command. Including files saves a lot of work, it means that you can create a standard header, footer and menu file that is available to all web pages.