How do I call a single file to multiple pages?
I want to be able to change my links from a file I call column_left.php to a lot of different html pages. How do I do this?
How do I call a single file to multiple pages?
I want to be able to change my links from a file I call column_left.php to a lot of different html pages. How do I do this?
If they're HTML pages, you can't really do this unless you use iFrames.
Now, if you change these files to PHP files, you can just include column_left.php:
PHP Code:
include('column_left.php');
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
save the files with php extensions so that it looks like file.php as opposed to file.html and enclose the include line so that it looks like this:
Make sure you create a file called http://www.column_left.php that has the info you want to go to all of your other files that has the 'include' as well.Code:<?php include('column_left.php'); ?>
I hope that helps.
Sorry about the cross-post, James.
Should be 'column_left.php', though, not 'http://www.column_left.php'...
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
Thank you both sooo much for the reply. I will try your suggestion.
Bookmarks