home

Php Include Tutorial


Common practise is to define a set of functions for an application and place them in a PHP file which is loaded by all other scripts in the system. External PHP files can be loaded using the

include() function:

include('functions.php');

Any PHP code in the file being included must occur inside <?php and ?> tags. Normal text and HTML in the file will be output straight to the browser. This makes the include() function extremely useful for keeping repeated elements of web sites (such as the common navigation or header) in a single file.


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web design london by dotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com