I am facing a puzzle, im testing some scripts on my wamp installation. When i do a echo date('d) and i run the script from the browser i see the correct week day, by example, lets say it echo 'Mon', but.. when i execute it from a batch file, the echo shows the next day, by example 'Tue', why this can be happening? I have the correct timezone in my php.ini the windows clock as well, i dont have a clue why this is happening. In the same puzzle, i have a path to a dbconnect file, again, from browser it run ok, but from the batch file it dont find the included path, i solved it writing the full windows path C:/path/to/file.php but i dont understand why, the include is done by the php file executed by the batch file, so the path should be ok right?
If someone can share some lights i would appreciate it.