May 1, 2009

PHP Date

We have had a few emails asking about simple PHP dates for copyright footers and having the date as part of a navigation so we thought we would post a little info pack about PHP dates.

Adding the year as part of the copyright is a great idea as it makes one less thing you have to change each year of your website. 1 more thing of the “To do List”

The simple way of getting the date and outputing it to the screen is using the example provided from PHP.NET shown below:

Source PHP.NET

<?php
$today
=

getdate();
print_r($today);
?>

To do a year only for copyright footers like we have on our website you can use:
<?php echo date(‘Y’); ?>
Hope you find this tiny bit of code handy for your website.

Join the conversation! 131 Comments

  1. Hostmediauk…

    […] something about hostmediauk[…]…

    Reply
  2. tadalafil 5mg pills – cialis 40mg tablet tadalafil tablets

    Reply
  3. cheap hydroxychloroquine – brand hydroxychloroquine 200mg hydroxychloroquine 200mg brand

    Reply
  4. cephalexin sale – generic clindamycin buy erythromycin 250mg sale

    Reply
  5. sildenafil sale – antabuse online order antabuse 250mg usa

    Reply
  6. rhinocort cheap – rhinocort order online order cefuroxime 250mg pill

    Reply
  7. bimatoprost us – order robaxin online purchase trazodone online cheap

    Reply
  8. sildenafil 50mg generic – sildenafil 150mg pills order ranitidine 300mg online

    Reply
  9. online slots – prednisone medication prednisone for sale online

    Reply
  10. prednisone 10mg over the counter – isotretinoin 10mg generic accutane order online

    Reply
  11. buy amoxicillin 1000mg sale – viagra 25mg generic viagra 150mg

    Reply
  12. generic tadalafil 5mg – order cialis 10mg for sale real cialis pills

    Reply
  13. ivermectin 50 mg – stromectol for sale online zithromax brand

    Reply
  14. azithromycin pills – medrol 16mg otc methylprednisolone 4 mg otc

    Reply
  15. baricitinib 2mg for sale – generic aralen order dapoxetine 60mg sale

    Reply
  16. buy glucophage sale – glucophage online order atorvastatin

    Reply
  17. cheap norvasc 5mg – oral prilosec 20mg order prilosec 10mg online

    Reply
  18. metoprolol 100mg canada – buy metoprolol without prescription purchase cialis generic

    Reply
  19. purchase tadalafil generic – viagra 200mg price order sildenafil 100mg generic

    Reply
  20. I really like and appreciate your article.Thanks Again. Cool.

    Reply
  21. ivermectin 6 mg tablet – ivermectin 12 mg otc ivermectin oral solution

    Reply
  22. Very informative blog post.Thanks Again. Really Cool.

    Reply
  23. Great blog article.Thanks Again. Fantastic.

    Reply
  24. Appreciate you sharing, great blog. Will read on…

    Reply
  25. Very neat post.Thanks Again. Awesome.

    Reply
  26. Thank you for your blog post. Want more.

    Reply
  27. cialis 10mg oral – order cenforce online cheap buy cenforce 100mg sale

    Reply
  28. Really appreciate you sharing this blog post.Thanks Again. Much obliged.

    Reply
  29. brand diltiazem 180mg – diltiazem usa buy acyclovir 400mg online

    Reply
  30. Thanks for sharing, this is a fantastic post.Thanks Again. Keep writing.

    Reply
  31. I appreciate you sharing this blog. Really Great.

    Reply
  32. I really liked your blog article.Really thank you! Will read on…

    Reply
  33. Awesome blog post.Thanks Again.

    Reply
  34. Major thankies for the article.Thanks Again. Really Cool.

    Reply
  35. Im grateful for the article.Really looking forward to read more. Cool.

    Reply
  36. This is one awesome blog article.Really thank you! Keep writing.

    Reply
  37. I truly appreciate this post.Really looking forward to read more. Much obliged.

    Reply
  38. Really informative blog.Really thank you! Really Cool.

    Reply
  39. buy sildenafil sale – cialis online tadalafil 5mg

    Reply
  40. Muchos Gracias for your blog.Thanks Again. Much obliged.

    Reply
  41. cheap toradol 10mg – lioresal without prescription baclofen 10mg pills

    Reply
  42. Really informative blog article. Cool.

    Reply
  43. Very informative blog.Really looking forward to read more. Great.

    Reply
  44. Very neat blog article. Fantastic.

    Reply
  45. Thanks-a-mundo for the article post. Really Cool.

    Reply
  46. I loved your article.Thanks Again. Keep writing.

    Reply
  47. I am so grateful for your blog post.Thanks Again. Great.

    Reply
  48. brand tadalafil – tadalafil otc sildenafil 20 mg

    Reply
  49. order cialis 10mg online – tadalafil 40mg brand buy warfarin pills

    Reply
  50. I am so grateful for your blog post.Thanks Again.

    Reply
  51. Im grateful for the blog.Really looking forward to read more. Want more.

    Reply
  52. avodart pills – cost avodart 0.5mg cheap tadalafil without prescription

    Reply
  53. Looking forward to reading more. Great post. Awesome.

    Reply
  54. Really appreciate you sharing this post.Much thanks again. Fantastic.

    Reply
  55. I am so grateful for your blog article.Thanks Again. Awesome.

    Reply
  56. Im grateful for the post.Really thank you! Much obliged.

    Reply
  57. Say, you got a nice article post.Really looking forward to read more. Awesome.

    Reply
  58. Really appreciate you sharing this blog article.Really looking forward to read more. Want more.

    Reply
  59. new ed pills – pills erectile dysfunction order prednisone for sale

    Reply
  60. Say, you got a nice article.Really looking forward to read more. Awesome.

    Reply
  61. accutane 40mg pills – isotretinoin buy online buy amoxicillin 500mg pill

    Reply
  62. Great, thanks for sharing this article post.Much thanks again. Really Cool.

    Reply
  63. Im obliged for the blog post.Much thanks again. Want more.

    Reply
  64. I loved your blog.Really looking forward to read more. Will read on…

    Reply
  65. Thank you ever so for you blog.Thanks Again. Cool.

    Reply
  66. Im grateful for the article post.Really looking forward to read more. Really Cool.

    Reply
  67. Thank you ever so for you article post. Really Great.

    Reply
  68. I really like and appreciate your blog post.Much thanks again. Much obliged.

    Reply
  69. Thanks a lot for the blog post.Thanks Again. Really Great.

    Reply
  70. Fantastic post.Really thank you! Great.

    Reply
  71. Im obliged for the blog post.Much thanks again. Will read on…

    Reply
  72. Wow, great blog article.Really looking forward to read more. Really Great.

    Reply
  73. Muchos Gracias for your article post.Thanks Again. Cool.

    Reply
  74. Major thankies for the post.Really thank you! Really Cool.

    Reply
  75. Really informative article.Really thank you! Cool.

    Reply
  76. Thanks for the blog post.Really thank you! Awesome.

    Reply
  77. I really enjoy the article.Really looking forward to read more. Really Great.

    Reply
  78. I really liked your blog.Really looking forward to read more. Cool.

    Reply
  79. A round of applause for your blog.Much thanks again. Awesome.

    Reply
  80. Very informative article post.Much thanks again. Will read on…

    Reply
  81. Hey, thanks for the article post.Really thank you! Will read on…

    Reply
  82. provigil ca – provigil 200mg us purchase viagra online cheap

    Reply
  83. Very neat blog post. Great.

    Reply
  84. accutane 20mg usa – buy celebrex online order celebrex sale

    Reply
  85. Major thankies for the post.Really looking forward to read more. Cool.

    Reply
  86. online casinos usa – cheap term papers websites to write essays

    Reply
  87. Really enjoyed this blog article.Thanks Again. Cool.

    Reply
  88. I value the post.Much thanks again. Much obliged.

    Reply
  89. Great article.Really looking forward to read more. Will read on…

    Reply
  90. real money casino online usa – purchase finasteride online order ampicillin pills

    Reply
  91. Im obliged for the blog.Much thanks again. Keep writing.

    Reply
  92. I cannot thank you enough for the article. Much obliged.

    Reply
  93. order ciprofloxacin 500mg – cipro us cialis for sale online

    Reply
  94. Really appreciate you sharing this article.Really thank you! Really Cool.

    Reply
  95. This is one awesome article post.Much thanks again. Want more.

    Reply
  96. sildenafil 150mg us – sildenafil tablets generic vardenafil prices

    Reply
  97. Really informative article.Really thank you! Awesome.

    Reply
  98. Thanks so much for the article post.Thanks Again. Really Cool.

    Reply
  99. Thank you ever so for you article post.Really thank you! Want more.

    Reply
  100. I really like and appreciate your article post.Really looking forward to read more. Really Great.

    Reply
  101. I really enjoy the blog article.Much thanks again. Much obliged.

    Reply
  102. Very informative blog article. Really looking forward to read more. Want more.

    Reply
  103. Muchos Gracias for your blog article.Much thanks again. Really Great.

    Reply
  104. Hey, thanks for the article post.Really looking forward to read more. Awesome.

    Reply
  105. prednisolone 10mg price – oral tadalafil 10mg buy tadalafil 10mg

    Reply
  106. Thank you ever so for you blog.Much thanks again. Cool.

    Reply
  107. Im grateful for the blog.Much thanks again. Will read on…

    Reply
  108. Major thanks for the article post.Really thank you! Awesome.

    Reply
  109. buy augmentin – order tadalafil 20mg cialis 20mg uk

    Reply
  110. Thank you ever so for you blog.Really looking forward to read more. Awesome.

    Reply
  111. Thanks-a-mundo for the blog.Really thank you! Keep writing.

    Reply
  112. Hey, thanks for the blog post.Much thanks again. Keep writing.

    Reply
  113. buy bactrim 480mg generic – sildenafil on line viagra 100mg pills for men

    Reply
  114. Say, you got a nice blog post. Awesome.

    Reply
  115. Thank you ever so for you blog article.Really looking forward to read more. Keep writing.

    Reply
  116. Major thanks for the blog post. Will read on…

    Reply
  117. Im thankful for the blog article.Thanks Again. Fantastic.

    Reply
  118. cephalexin 250mg generic – cleocin 150mg ca erythromycin price

    Reply
  119. sildenafil usa – ivermectin nz ivermectin 12mg over counter

    Reply
  120. Great website. Lots of helpful info here. I’m sending it to several buddies ans additionally sharing in delicious. And obviously, thanks on your effort!

    Reply
  121. Such an amazing write up. Would love to read more like these.

    Reply
  122. Kemimoto is committed to being the leader brand of UTV accessories for the world’s off-road enthusiasts. We provide products such as mirrors, whip light and storage boxes for Polaris, Can-Am, HONDA. Everything we do is supported by our shared love for off-roading.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

About Host Media

We have been hosting websites since 2002 and are always moving forward. All articles written under the Host Media author are created by the team who support our customers.

Category

PHP & MySQL

Tags

, , , ,