[PHP] Re: slicing and dicing strings

2012-06-28 Thread Shailesh N. Humbad
On 6/27/2012 6:15 PM, Kirk Bailey wrote: ok, it slices and dices, but how? in python, to print all but the last char in string FOO, we say print FOO[:-1] But this seems to bark like a basset hound in php. Whyfore? Now tihs tyro is seeking sage words to help me understand this. RTFM is not sage

[PHP] Re: php batch/queue framwork

2012-06-28 Thread Shailesh N. Humbad
On 6/28/2012 11:58 AM, Tom Sparks wrote: I am looking for a batch/queue framework that is database-centric? I could write my own, but I want one that is mature tom_a_sparks It's a nerdy thing I like to do You could try Amazon Simple Queue Service: http://aws.amazon.com/sqs/ Use the PHP SDK:

[PHP] add one day to DateTime based on timestamp

2012-06-14 Thread Shailesh N. Humbad
Hello, When I create a DateTime object from a UNIX timestamp, and then add a one day interval, PHP adds 25 hours instead of 24. Is this a bug, or something to do with the time zones? Here are the commands I'm running from my shell: -- $ date Wed Jun 13 06:08:24 PDT 2012 $ php -r