|
#1
|
|||
|
|||
|
Be gentle, I am an accountant, and my web page is for recreation, so I have no real training.
I was told that include() was a good way to update the navigation links on each page because you only have to edit one file vs. manually editing all 30 something pages of html I have now. So I was given the instructions on how to do it. Basically, build the PHP file with the HTML you want to include(), and use the command <?php include("file.php"); ?> to include the file. I did that... but it didnt work in any fashion. I have also downloaded examples from other websites, thrown them out there, and they didnt work either. So what am I doing wrong? Is there some sort of setup I need to do first to make this work? Enable something? I really am not trying to do anything more complicated than update common content on web pages in less time than it takes now. Thanks! Jim |
|
#2
|
|||
|
|||
|
First, I'm assuming you *really* need php.
1 - The name of the file in which the "include statement" resides must end in *.php 2 - if there are any php statements in the "included" file, they must be enclosed in the php indicators ("<?php" and "?>") |
|
#3
|
|||
|
|||
|
Yes... I REALLY needed it.
![]() The problem was #1. I had it named html still and not php. Thanks for your help! Jim |
![]() |
| Bookmarks |
| Thread Tools | |
|
|