PHP5 and the date function.

56 views
Skip to first unread message

SpaceDoG

unread,
May 8, 2010, 5:24:44 AM5/8/10
to PHudBase Developers
Not sure if you're aware yet but with PHP5 you have to declare the
timezone that the server is in. A simple declaration of
date_default_timezone_set('UTC'); on game.php works just fine for
fixing it.

SpaceDoG

unread,
May 8, 2010, 5:31:52 AM5/8/10
to PHudBase Developers
I'm getting a lot of the following

Notice: Undefined offset: ### in D:\Apache2.2\htdocs\server\includes
\classes\Server\SocketServer.class.inc on line 127

Also on errorFunctions.inc E_WARN should be in single quote in order
to avoid a notice warning.

Benjamin Graham

unread,
May 11, 2010, 7:27:45 PM5/11/10
to phudbase-...@googlegroups.com
Yes this is a issue with PHP5.3 for sure. I did not have this issue with PHP5.2 though, so I can't confirm for all PHP5 versions.
Reply all
Reply to author
Forward
0 new messages