I've googled and searched these forums, but remain confused, so I'll just ask.
I'm writing a script which I'll eventually submit as a cron job, and it relies on knowing the date and time. When I upload my script and test it, any call to php's date() function simply shows my local time, but I'm interested in the server's time, so I can write everything properly for when this becomes a cron.
So -- if date() gets called remotely (like from my web browser), obviously it returns local time, and I'm guessing that if it's called locally on the server (cron) then it returns the server's time. If that's true, it would solve my problem, but I'd still feel better being able to call on some function to explicity check the time on the server, regardless of where the script is being called from (call it testing paranoia).
BTW I'm still on PHP 4.
Any suggestions?