I am new to PHP and have read tutorials and have created a .php called date.php with the coding:
PHP Code:
<html>
<head>
<title>PHP Date Test</title>
</head>
<body>
Copyright © 2003-<?php
echo date("Y");
?> Autograph Arcade. All rights reserved.
</body>
</html>
then if I type in the domain www.autographarcade.com/date.php it works and shows the sentence and the current year which is what I want.
My problem is, how do I now put this script in front of the words in the other html documents so it shows the current year and I do not have to change hundreds of pages manually every year?
Thanks AndyK
Edit: Wrapped the code in [php][/php] tags
Bookmarks