• 08-08-2012, 23:20:36
    #1
    Üyeliği durduruldu
    Aşağıdaki iki farklı PHP kodundan birini seçin ve sitenizin alt kısmına yapıştırın. Böylece copyright ifadesi otomatik olarak güncellensin.

    İlk kod örneği:

    &copy; Copyright <?php
    $then = 2007;
    $now = date(’Y’);
    if ($then == $now)
    echo $now;
    else
    echo “$then - $now”;?>
    $then değişkenine sitenizin yayına başladığı tarihi yazmayı unutmayınız.

    İkinci kod daha basit:

    &copy; Copyright 2007 - <?php echo date(’Y'); ?>
    Örnek görüntüsü:
    © Copyright 2007 - 2009.
  • 08-08-2012, 23:52:16
    #2
    Client taraflı

    <script type="text/javascript">
    tDate=new Date();
    uDate=tDate.getFullYear();
    document.write("Copyright &copy; 2007-"+uDate+" XXX, All rights reserved.");
    </script>