[PHP] Re: Previous and Next Month and Year

2007-06-16 Thread Vlad Vlasceanu
time() returns a unix timestamp of the current moment in time (now), so in effect you are adding or subtracting 6 seconds to that. calling: date('m/d/Y', time()); is the same as calling: date('m/d/Y'); On the other hand: mktime(hour, minute, second, month, day, year) generates a timestamp such

[PHP] Re: Appending to an Array

2007-06-16 Thread Vlad Vlasceanu
"." is the concatenation operator, usually applies only to strings try: $days[] = array($this_day=>array("#","today-day")); or actually: $days[$this_day] = array("#","today-day"); since it looks like you're indexing based on the day Keith Spiller wrote: Hi Folks, RE: Appending to an Array

[PHP] $_SERVER['HTTP_ACCEPT_ENCODING'] unavailable

2007-06-16 Thread Vlad Vlasceanu
Did anyone experience this? I am working on a script that compresses the output, thus relying on $_SERVER['HTTP_ACCEPT_ENCODING'] to figure out how to encode it. The problem is 'http_accept_encoding' is missing from $_SERVER. I realize the value may not be available all the time, but it seems