Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions Tools to help you create your site Free and shareware fonts to download Photographs to use in your projects Shop for your site needs Free Online classes REcommend this site to others Log in or edit your information when logged in Developingwebs Log Out Change My Account details and preferences
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

Scripting a Dynamic PHP Copyright

The date is fairly specific in how it is scripted. you can single out the year and use the PHP script for year to script a dynamic date so you won't have to update at the end of each year. All you do is set the starting date, apply the script!

One of the benefits of scripting the date in PHP is the viewer does not get to see the script, but only the html outcome. Try replacing Your copyright code for the following PHP script, substituting the starting year for your starting year! this will save you lots of time in the future!

Below is the PHP script for adding a dynamic, or automatically updating copyright date for your site. Copy and paste it into your page exactly where your copyright is now.

<? //Provided by Developingwebs.net echo "Copyright &copy; 1998-".date('Y'); ?>



Here is how it looks:

Copyright © 1998-2008

 

 



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2008 All Rights Reserved
Privacy and Legal