I'm having an issue when running a script in a browser versus the command line. The script echo's the date 1/20/2012 when running within the browser, however when running within the command prompt it echo's tommorows date 1/21/2012. I have set my timezone to the
date.timezone = America/New_York
I'm running this script in the command line:
"c:\wamp\bin\php\php5.3.4\php.exe" -f "c:\wamp\www\site.com\cron.php"
Any ideas on why I'm getting two different dates from the same script?
date_default_timezone_set();???