Lee Posted July 24, 2007 Share Posted July 24, 2007 I want to echo out the copyright at the footer of my page (still a noob). Here's what I have in my vars page. $copyright = '<span class="smallwhite">© 2007 Stone Island Records </span>'; Then I just echo.. <?php echo $copyright; ?> What I really want to do is have php adjust the year for me. So do I have to make 3 variables, one for the copyright symbol, one to display the current year & another to display our name, or is there a simpler way of doing this? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/ Share on other sites More sharing options...
nicangeli Posted July 24, 2007 Share Posted July 24, 2007 <?php $year = date("Y"); $copyright = '<span class="smallwhite">© ' . $year . ' Stone Island Records </span>'; echo $copyright; ?> Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306347 Share on other sites More sharing options...
piznac Posted July 24, 2007 Share Posted July 24, 2007 May not be the best way,.. but it works <?php $copyright = "<span class=\"smallwhite\">©" . date("Y") . "Stone Island Records </span>"; echo $copyright; ?> Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306348 Share on other sites More sharing options...
Lee Posted July 24, 2007 Author Share Posted July 24, 2007 Thanks guys! Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306359 Share on other sites More sharing options...
keeB Posted July 24, 2007 Share Posted July 24, 2007 <?php $year = Date("Y"); $copyright = '<span class="smallwhite">© $year Stone Island Records </span>'; ?> Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306369 Share on other sites More sharing options...
LiamProductions Posted July 24, 2007 Share Posted July 24, 2007 You could use fread Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306371 Share on other sites More sharing options...
Lee Posted July 24, 2007 Author Share Posted July 24, 2007 Well today I have just built my first ever page using a header, content & footer & using php to call for images e.t.c. And now the copyright too thanks to your help. Totally chuffed Link to comment https://forums.phpfreaks.com/topic/61553-solved-simple-copyright-line/#findComment-306386 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.