Lee Posted October 15, 2006 Share Posted October 15, 2006 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]<?phpdefine (COPYRIGHT,'<span class="maintext">© Stone Island Records 2006</span>');?>[/code]then in the index page at the top I put [code]<?phprequire_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 More sharing options...
Orio Posted October 15, 2006 Share Posted October 15, 2006 This seems ok to me... Are you sure your code looks exactly the same?Orio. Link to comment https://forums.phpfreaks.com/topic/24003-simple-constant-solved-thanks/#findComment-109049 Share on other sites More sharing options...
Lee Posted October 15, 2006 Author Share Posted October 15, 2006 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? Link to comment https://forums.phpfreaks.com/topic/24003-simple-constant-solved-thanks/#findComment-109050 Share on other sites More sharing options...
Lee Posted October 15, 2006 Author Share Posted October 15, 2006 ..er ok now its working..I must have gremlins somewhere.Thanks for the help anyway :) Link to comment https://forums.phpfreaks.com/topic/24003-simple-constant-solved-thanks/#findComment-109051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.