Forum Moderators: coopster
I am gradually trying to move away from Javascript and into PHP (good move, huh :P) but for the time being I am a complete noob to PHP, so I wondered, perhaps one of you nice people could quickly convert the following for me, or point me in the right direction if this isn't quite possible?
<script type="text/javascript">
function year() {
var time = new Date();
var year = time.getYear();
if (year < 1900) {year += 1900;}
document.write("© <b>James Nicholson</b> 2003 - " + year);}
</script>
<script type="text/javascript">year();</script>
-- James.
<?php
echo "© <b>James Nicholson</b> 2003 - ", date [ca2.php.net]('Y');
?>
the file in which this appears must be php parsed
<?php
print("© <b>James Nicholson</b> 2003 - " . date [php.net]("Y"));
?>
You're quick jatar_k!