Krijg de volgende errors:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /home/marmotte2003/public_html/batch/testDateTime.php on line 50
( ! ) Exception: DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/marmotte2003/public_html/batch/testDateTime.php on line 50
En op die regel staat deze code:
$date = new DateTime('2000-01-01');
Kijk eens naar de waarde van
"Loaded Configuration File" in [php]phpinfo[/php]. De kans is groot dat je wel root-rechten op de server moet hebben. Anders moet je Frank's oplossing in je PHP-script toevoegen.