Date problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Like in the other mail, I have another problem with my logging class...

I'm trying to get the current date to write it in each line it's writed but
the process is stopped when I try to access the hours, the minutes or the
seconds.

$now = getdate();
     $stringNow = $now["year"] . $now["month"] . $now["mday"] . " - "
/*$now["hours"] . ":" . $now["minutes"] . ":" . $now["seconds"]*/;

The commented code is the one that causes the execution to break. I compared
the keys with the ones on the getdate's documentation page and they're the
same...

Anyone had this problem and know anything of it?

Thanks :)

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux