First make the file that you want to include on each pages such as your layout or affies etc.

Then put this code on every page where you want the file to be included,
<?php include("FILENAME.php"); ?>
(where it says FILENAME put the name of your file your including.)

Now everytime you update that file, all your files with the include on them, they will change. If you need anymore help feel free to message me at admin@lunerlyts.com.

Comments for this tutorial (5)

sillysays on October 21st at 9:02pm

can you use notepad for this?

tarynsays on October 25th at 11:07am

yess

tester on October 27th at 7:10pm

Wow that helped me alot!
I never understood what PHP was before.
Thanks &#40:

matinee on December 2nd at 2:53am

how do you instead of putting the layout code for a domain layout on every page is there a way where you dont have to??

highroyalty on December 9th at 3:13pm

hey, so i did this but now i cant find the file to get the link can anyone help me?

Login or signup to comment!

Welcome!

Yakkel is your central source for web developer tutorials as well as a leading free web hosting provider.

500mb storage space
FTP access, unlimited email accounts, unlimited subdomains!

Host all your domains, for free!

learn more by taking a quick tour ›
learn about our free hosting ›
signup now ›

About this tutorial

Use this tutorial to learn how to make life a lot easier using Php Include.

category

PHP

tagged with

php × 1
include-files × 1

published by

lunerlyts on october 15th

viewed

954 times

comments

5 comments

Sponsored links