A
Anonymous
Guest
Hey all
When I use time() it returns my computer time, is here any way to get my server's time?
When I use time() it returns my computer time, is here any way to get my server's time?
use exec() to run system commandWoozyDuck said:Hey all
When I use time() it returns my computer time, is here any way to get my server's time?
exec('date');
WoozyDuck said:When I use time() it returns my computer time, is here any way to get my server's time?
swirlee said:WoozyDuck said:When I use time() it returns my computer time, is here any way to get my server's time?
I'm not sure why ruturajv is telling you to use exec(). If you use the PHP function time() it will always tell you the time on the server. PHP has no way to know what the time on the client is, so it will never return the time on the client, unless, of course, the client is running on the same machine as the server. Don't use system calls as ruturajv describes unless you absolutely have to, and in this case you definitely don't have to.