Please look at type 2 make a website before you go on.
if you know the php code is
So how to include files into the same page using php?
here is how.
All you need is to create a folder of any name and create a txt or php document using notepad or evrsoft.
I think notepad is better for php editing.
for example my txt/php file is named 'home.txt' and I want to include in into my homepage as text, all I need to do is insert this code.
| Code: |
<html> <head> <title>homepage</title> </head> <body> <?php include 'home.txt'; ?> </body> </html> |
and it is done.
You can include as many files as you like. But it mostly only allows include php/txt files and not the other types.