.: Back one page :.

Suppose you have a copyright notice on your site that looks like this ::

Copyright 1999 - 2004

PHP can automatically update this for you without any further interaction (or publishing) on your part. Then whenever your web pages are requested by a browser, PHP reads the current date on your host and delivers the result to your site.
 

www.fuse7.co.uk

<?php
echo 'Copyright 1999 - ';
echo date('Y');
?>

output ::

Copyright 1999 - [current year is then displayed here]


Below is the above code embedded in this page, which will change automatically from year to year:

Copyright 1999 - 2010 


Right click inside this iframe and view source, then search for the words 'above code' without the ' ' quotes. On the line following the result of your search, you will see the HTML output from PHP - no embedded PHP code will be found.

Note: all PHP statements must end with a semi-colon (as in the above code). This can be easily forgotten! ;-)

How to do this in Netobjects Fusion: