RE: [PHP] Some date() oddities

2013-01-09 Thread Arno Kuhl
On Tue, 8 Jan 2013, Arno Kuhl wrote: > Starting with a unix timestamp for 31 December 2012 13:12:12 (which is > 1356952332) I calculate a week number: > > $ux_date = 1356952332; > > $weeknumber = date("W", $ux_date); // returns 01 instead of 52 I'm not that familiar with date, I tend to use str

Re: [PHP] Some date() oddities

2013-01-09 Thread Jani Ollikainen
On 9.1.2013 12:22, Arno Kuhl wrote: Both %U and %W seem to return what you want, using strftime. I'd guess that date would also have flags for these. No. That's one thing I've wondered sometimes. According to documentation: strftime has: Week--- --- %U Week number of the given year,

[PHP] Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

2013-01-09 Thread Ken Kixmoeller
Hey, folks - One of my applications is being moved to a new server. Testing it out, I get the subject error. The error is reported this way in Chrome. In FireFox it says: "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I

Re: [PHP] Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

2013-01-09 Thread shiplu
Could you run curl --head -i --max-redirs 10 http://yoursite.com > headers.log And paste the log here? On Thu, Jan 10, 2013 at 2:25 AM, Ken Kixmoeller wrote: > Hey, folks - > > One of my applications is being moved to a new server. Testing it out, I > get the subject error. The error is

[PHP] Re: Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

2013-01-09 Thread Jan Ehrhardt
Ken Kixmoeller in php.general (Wed, 9 Jan 2013 14:25:33 -0600): >I have searched for 2 days trying to find references for this. I see a lot >of PHP-driven applications having the same problem (mostly blogs), but no >"under the hood" fixes. It might be a rewrite rule that rewrites to the original U