Jump to content


Photo

Simple constant [SOLVED THANKS]


  • Please log in to reply
3 replies to this topic

#1 Lee

Lee
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 15 October 2006 - 02:43 PM

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..
<?php
define (COPYRIGHT,'<span class="maintext">&copy; Stone Island Records 2006</span>');
?>

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

and then at the bottom of the page
<?php echo COPYRIGHT ?>

how have I ballsed this up? :-[

Thanks.

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 15 October 2006 - 02:51 PM

This seems ok to me... Are you sure your code looks exactly the same?

Orio.
Think you're smarty?

(Gone until 20 to November)

#3 Lee

Lee
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 15 October 2006 - 02:56 PM

Yeh, I copied & pasted it.

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

maybe thats in the wrong place?

#4 Lee

Lee
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 15 October 2006 - 02:59 PM

..er ok now its working..
I must have gremlins somewhere.

Thanks for the help anyway :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users