Jump to content

Archived

This topic is now archived and is closed to further replies.

Lee

Simple constant [SOLVED THANKS]

Recommended Posts

Hi, I just want to make a simple constant for a copyright that I put at the bottom of each page.
I made a page called cosnstants.php & put the following code..
[code]<?php
define (COPYRIGHT,'<span class="maintext">&copy; Stone Island Records 2006</span>');
?>[/code]

then in the index page at the top I put [code]<?php
require_once("constants.php");
?>[/code]

and then at the bottom of the page
[code]<?php echo COPYRIGHT ?>[/code]

how have I ballsed this up? :-[

Thanks.

Share this post


Link to post
Share on other sites
This seems ok to me... Are you sure your code looks exactly the same?

Orio.

Share this post


Link to post
Share on other sites
Yeh, I copied & pasted it.

I put the require command right after
[code]<html xmlns="http://www.w3.org/1999/xhtml">[/code]

maybe thats in the wrong place?

Share this post


Link to post
Share on other sites
..er ok now its working..
I must have gremlins somewhere.

Thanks for the help anyway :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.