emdevelopments

Specialists in Customer Service

Useful PHP snippets

Your server must support PHP for the snippets below to work.

<?php include 'includes/header.php'; ?>

This is a simple php include - it allows you to place a block of code in a file, and then directly insert the contents of that file at any point in your page. Don't forget to give the page you're working on a .php extension (as opposed to .htm etc).

<?php include $_SERVER['DOCUMENT_ROOT'].'includes/header.php'; ?>

This calls the file directly from the server root directory - so wherever you are in the folder sstructure, you can use that one command to call the file you want, every time.

Contact Us | About Us | Accessibility | Privacy Policy | Terms | Site Map
Millennium Stadium, Wales.