Re: [PHP] Holding datetimes in a DB.

2013-03-01 Thread Paul McGarry
On Fri, Mar 1, 2013 at 9:49 PM, Richard Quadling rquadl...@gmail.com wrote: Hi. My heads trying to remember something I may or may not have known to start with. If I hold datetimes in a DB in UTC and can represent a date to a user based upon a user preference Timezone (not an offset, but a

[PHP] socket_connect() unable to connect [115]: Operation now in progress

2011-04-10 Thread Paul McGarry
Hi all, Can anyone explain why I might get a: socket_connect(): unable to connect [115]: Operation now in progress error on a blocking socket? The documentation seems to suggest that is a 'normal' response for a non-blocking socket but I am seeing it on a blocking socket. Example code:

[PHP] Implementing strict types

2011-02-28 Thread Paul McGarry
I am looking at implementing something roughly equivalent to strict typing for a part of my code. Has anybody else had a go at such a thing? I have some data types which I'm implementing as classes (base types like int but also more specific types like country) and I'd like to be able to use them