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)
can you use notepad for this?
yess
Wow that helped me alot!
I never understood what PHP was before.
Thanks (:
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??
hey, so i did this but now i cant find the file to get the link can anyone help me?
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
tagged with
php × 1
include-files × 1
published by
lunerlyts on october 15th
viewed
954 times
comments
Sponsored links
Related
How to use jQuery plugin jGrowl
How to login to phpMyAdmin on Yakkel
How to setup your very own Gravatar
How to redirect a domain with htaccess
How to make a new directory or folder in FileZilla
How to make a new file in FileZilla
How to find your myspace FRIEND ID
Using Filezilla to upload your files to Yakkel
How to change permissions of a file or folder