jeanmi
Gebruiker
- Lid geworden
- 24 aug 2001
- Berichten
- 262
Ik probeer stap voor stap PHP onder de knie te krijgen. In mijn volgende oefening krijg ik een foutmelding i.v.m. de tijdzone.
Het is mij echter niet duidelijk waar ik dit moet wijzigen. Hieronder de foutmelding en de PHP-code
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in D:\Mijn site\Oefeningen\oef13.php on line 3
Copyright©2010web-garden.be: Alle rechten voorbehouden
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
Wie helpt mij?
Mvg,
Het is mij echter niet duidelijk waar ik dit moet wijzigen. Hieronder de foutmelding en de PHP-code
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in D:\Mijn site\Oefeningen\oef13.php on line 3
Copyright©2010web-garden.be: Alle rechten voorbehouden
PHP:
<?php
function voettekst(){
echo("Copyright©" .date("Y"). "web-garden.be: Alle rechten voorbehouden");}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
PHP:
<?php
voettekst();
?>
</html>
Wie helpt mij?
Mvg,