I have been using the folowing script for some years and it works perfectly in English but I now need to use this script on a German website and would like to know if there is a way of changing the language the browser displays so that the date portion is in German or French or whatever?
PHP Code:<p>© <?php<br />
ini_set('date.timezone', 'Africa/Johannesburg');<br />$startYear = 2007;<br /> $thisYear = date('Y');<br /> if ($startYear == $thisYear) {<br /> echo $startYear;<br /> }<br /> else {<br /> echo "{$startYear}-{$thisYear}";<br /> }<br />
?> Bartwebsites ‹› All Rights Reserved.</p>
<p><?php echo strftime('%A, %d %B %Y'); ?></p>



Reply With Quote


Bookmarks