I have the following code snippet.
$today = getdate();
$month = $today['mon'];
$mday = $today['mday'];
$year = $today['year'];
For some reason, and I have not been able to reproduce it (all of my tests have worked correctly), occassionally, this will return 01-01-0019 as the current day.
It also seems to happen in a batches as if something was temporarily wrong although nothing is reported in log file even with E_ALL as php.ini setting (according to datetimestamps on the database insert). Webserver and database server are on different machines but are synced in time nightly by a central server.
Info about my setup
PHP 4.3.1
Oracle 9i using OCI 8 driver
PHP ADOdb 3.1.1
Apache 1.3.27
Linux Redhat Advanced Server build 2.4.18-3
Thanks in advance for any help,
Bradley B