Hi to All! need help, why is it time on the server is not exact in the output of the page. I' am using WAMP5 Server. If time depend on the time of the server, how can I change its time because it has 4hours ADVANCED. thanks.

The timezone of your server is different to your timezone by the sounds of it.

Fix this with the following code (make sure to change the timezone to your timezone at home for best results!!)

echo "Original Time: ". date("h:i:s")."\n";
putenv("TZ=US/Eastern");
echo "New Time: ". date("h:i:s")."\n";

More info on http://blog.firetree.net/2006/10/03/timezones-in-php/
And

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.