Jump to content

Simple constant [SOLVED THANKS]


Lee

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.
Link to comment
https://forums.phpfreaks.com/topic/24003-simple-constant-solved-thanks/
Share on other sites

Archived

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

×
×
  • Create New...

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.