Results 1 to 3 of 3

Thread: Automatically updating the Copyright Date

  1. #1
    Glenn is offline Registered User
    Join Date
    Mar 2005
    Posts
    37

    Default Automatically updating the Copyright Date

    Hi - I'm trying to have the copyright date update automatically with the current year.

    PHP code date(’Y');

    tried
    Code:
    <?php echo date(’Y'); ?>
    and few other combos but i'm just guessing.

    Any ideas?

    Glenn

  2. #2
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Use <%php%> content <%/php%>
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Glenn is offline Registered User
    Join Date
    Mar 2005
    Posts
    37

    Default

    Thanks.. Ran into problems with a dodgy quotes around the Y but got there in the end.

    Code:
    <%php%> echo date('Y');<%/php%>

Similar Threads

  1. Copyright removal
    By Bruceper in forum Announcements
    Replies: 17
    Last Post: 01-30-2009, 05:11 PM
  2. Displaying Alexa Images (Thumbnails) automatically
    By anandn in forum INDEXU DELUXE v1.x
    Replies: 1
    Last Post: 06-18-2008, 11:57 AM
  3. Keywords - Automatically populating
    By inspireme in forum v3.2
    Replies: 5
    Last Post: 11-15-2004, 01:27 PM
  4. Copyright Issues
    By Polo5 in forum v5.x
    Replies: 8
    Last Post: 12-12-2003, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •