I am currently having the strangest problem. I have the following PHP code which should display the current day and date, but it gives me "Mon, Dec 12, 2010", no matter what day it is.
<?php echo date('D, M n, Y'); ?>
if i run
<?php echo date(); ?>
It does not return anything.
I am running PHP version 5.2.13 via fastcgi on lighttpd (managed by Kloxo). My time zone is correctly installed on the server (CentOS 5.5).
I do not know if this is a server problem or php.ini problem, so I post here. Move if necessary.
source
share