PDA

View Full Version : Need help to simplify copyright nightmare



mb716
03-22-2006, 09:51 PM
I would like to simplify my life by making an external sheet to change the copyright notice on all my pages at one time...instead of changing them one by one. How would I go about doing this?

Twey
03-22-2006, 10:01 PM
Include it server-side.
In PHP:

<?php include("copyright.inc.html"); ?>
In JSP:

<%@ include file="copyright.inc.html" %>

mb716
03-24-2006, 02:57 AM
Ok, I guess I don't know enough about php yet. What exactly do I need to do to make a php page for the footer information? I have tried several ways and none of them work.

djr33
03-24-2006, 08:29 AM
php includes just include a page. the included page doesn't even need to be a php file... html is fine.
Just make sure the page with the php include is a .php page, not .htm. If so, then it'll be just fine.

Twey
03-24-2006, 09:51 AM
And that your server supports PHP, of course.