php-general Digest 20 Nov 2012 14:56:05 -0000 Issue 8048

2012-11-20 Thread php-general-digest-help
php-general Digest 20 Nov 2012 14:56:05 - Issue 8048 Topics (messages 319737 through 319744): Re: Variables with - in their name 319737 by: Maciek Sokolewicz Re: globbed includes? 319738 by: tamouse mailing lists Re: Switch - Case Statement Questions 319739 by: Jim

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Terry Ally (Gmail)
Dear Duken, Many thanks for the solution. It worked! And thanks to everyone else who pitched in with various solutions. Regards Terry On 12 November 2012 10:06, Duken Marga dukenma...@gmail.com wrote: Try this: $todaydate = strtotime(date(D, M jS, Y g:i:s a)); $showenddate =

[PHP] Re: globbed includes?

2012-11-20 Thread Shawn McKenzie
On 11/18/2012 02:29 PM, tamouse mailing lists wrote: There are certain times I'd like to include all files in a given directory (such as configuration stuff that is split out by type, a la apache conf.d). Anyone have something handy that implements that? Just for fun:

[PHP] Encode e-mail text in UTF-8

2012-11-20 Thread MC
Hi, what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-printable encoding of e-mails. However, the function does not seem to work correctly for multi-byte code

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Jim Lucas
On 11/12/2012 02:06 AM, Duken Marga wrote: Try this: $todaydate = strtotime(date(D, M jS, Y g:i:s a)); $showenddate = strtotime(date(D, M jS, Y g:i:s a, strtotime($showsRecord['end_date']))); Won't this give you the same results without the extra conversion steps? $todaydate = date(U);

Re: [PHP] Encode e-mail text in UTF-8

2012-11-20 Thread Inigo Medina
On Tue, 20 Nov 2012, MC wrote: Hi, what is the recommended way to encode e-mail text in UTF-8? When the site were running in a single byte code page like iso-8859-2 I were happy with the imap_8bit function and quoted-printable encoding of e-mails. However, the function does not seem to

Re: [PHP] Date comparison going wrong, wrong, wrong

2012-11-20 Thread Terry Ally (Gmail)
It's a nice shortcut Jim. Never considered that. Thanks. On 20 November 2012 21:03, Jim Lucas li...@cmsws.com wrote: On 11/12/2012 02:06 AM, Duken Marga wrote: Try this: $todaydate = strtotime(date(D, M jS, Y g:i:s a)); $showenddate = strtotime(date(D, M jS, Y g:i:s a,