Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread Michael B Allen
On 3/5/08, John Campbell <[EMAIL PROTECTED]> wrote: > Frankly, I rarely find the need to use the multibyte functions (or any > string functions for that matter) on user data. Agreed. It is rare that the multibyte functions are necessary. The problem area is when you want to iterate over each cha

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread John Campbell
> Doesn't the multibyte string extension overload these functions? > They don't overload by default, but that is an option. I don't have any experience using it that way, but it feels like a bad idea. Frankly, I rarely find the need to use the multibyte functions (or any string functions for th

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread Cliff Hirsch
> http://translate.google.com/translate_t?langpair=ja|en&text=%E3%81%9D%E3%81%86 > %E3%81%8B%E3%81%AA%E3%81%82 That is way, way cool. I though you meant すし. I'm always thinking of food. This Bostonian indulged in Zabars, Crumbs, and the best slice of pasta bolognaise pizza last weekend! Only in NY

Re: [nyphp-talk] Detecting send email bounces

2008-03-05 Thread Cliff Hirsch
On 3/5/08 6:39 PM, "Rolan Yang" <[EMAIL PROTECTED]> wrote: > If you examine the manual and the code in phplist > (http://www.phplist.com) , that will offer some good ideas on email > bounce management. Perfect! Thanks. ___ New York PHP Community Talk

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread Cliff Hirsch
On 3/5/08 7:25 PM, "John Campbell" <[EMAIL PROTECTED]> wrote: > 2008/3/5 Cliff Hirsch <[EMAIL PROTECTED]>: >> Is there a downside to using utf-8? > > No, but there are issues with some string functions. In php4/5 > functions like substr() operate on bytes, and may break UTF-8 strings > that cont

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread csnyder
2008/3/5 Cliff Hirsch <[EMAIL PROTECTED]>: > Point well taken. Did you just place a sushi order? http://translate.google.com/translate_t?langpair=ja|en&text=%E3%81%9D%E3%81%86%E3%81%8B%E3%81%AA%E3%81%82 And yeah, John Campbell's point about multibyte strings is nicely illustrated by my example,

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread John Campbell
2008/3/5 Cliff Hirsch <[EMAIL PROTECTED]>: > Is there a downside to using utf-8? No, but there are issues with some string functions. In php4/5 functions like substr() operate on bytes, and may break UTF-8 strings that contain multibyte characters. I'd search your code for things like "substr" a

Re: [nyphp-talk] Detecting send email bounces

2008-03-05 Thread Rolan Yang
If you examine the manual and the code in phplist (http://www.phplist.com) , that will offer some good ideas on email bounce management. ~Rolan Cliff Hirsch wrote: How do you detect bad email errors? Pear mail provides errors messages, but most deal with things like bad formatting, sendmail

[nyphp-talk] Detecting send email bounces

2008-03-05 Thread Cliff Hirsch
How do you detect bad email errors? Pear mail provides errors messages, but most deal with things like bad formatting, sendmail problems, etc. What is the best way to detect failed delivery or bouncers. Detect them by parsing messages in a bounce folder? Start with Pear Mail_Mbox? Anything easier?

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread Cliff Hirsch
Is there a downside to using utf-8? If you use 8859-1 you're > practically making the application English-only, or at least limiting the > ability of people to express themselves. そうかなあ? -- Chris Point well taken. Did you just place a sushi order? _

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread csnyder
On Wed, Feb 27, 2008 at 8:35 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > b 26, 2008, at 5:46 PM, Cliff Hirsch wrote: > I have been validating textareas using ctype_print > > > > Are you using utf-8 encoding? What do you need to validate/sanitize with > the textareas? That the input is usi

Re: Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread Bob/Jules
Where is the code for the function? >http://www.webbytedd.com/b1/char-replace/index.php > >Cut/paste Word text TO the top text-box, click Convert, and cut/paste >FROM the bottom text-box. > >If anyone see's any problem, please let me know. > >Thanks for the function. > >Cheers, > >tedd > > >-- >

Re: [nyphp-talk] Charsets are still driving me nuts

2008-03-05 Thread tedd
At 7:06 PM -0500 2/26/08, Daniel Convissor wrote: Hi Cliff: On Tue, Feb 26, 2008 at 05:46:15PM -0500, Cliff Hirsch wrote: It?s amazing how many people cut and paste from MS Word. Tell me about it. Here's what we use: -snip- That seems to work very well, see here: http://www.webbytedd.co

[nyphp-talk] Wiki Style Links

2008-03-05 Thread Yitzchak Schaffer
I was wondering if anyone else has done this and if they have the code readily available. I want to be able to parse wiki style links such as [[page|title]] [[page]] = Also check out the PEAR Text_Wiki package. ___ New York PHP Community Talk

Re: [nyphp-talk] Wiki Style Links

2008-03-05 Thread Kenneth Downs
Donald J Organ IV wrote: I was wondering if anyone else has done this and if they have the code readily available. I want to be able to parse wiki style links such as [[page|title]] [[page]] Any suggestions ?? ___ New York PHP Community Talk Mailing

Re: [nyphp-talk] Wiki Style Links

2008-03-05 Thread Dan Cech
Donald J Organ IV wrote: I was wondering if anyone else has done this and if they have the code readily available. I want to be able to parse wiki style links such as [[page|title]] [[page]] Any suggestions ?? Something like this might be a start: $str = preg_replace( array( '/\[\[([^

Re: [nyphp-talk] Wiki Style Links

2008-03-05 Thread Brian D.
I can't say right off the top of my head, but if all else fails there are several open source PHP-based wiki's - you could always take look at their code and see what's involved. - B. On Wed, Mar 5, 2008 at 10:18 AM, Donald J Organ IV <[EMAIL PROTECTED]> wrote: > I was wondering if anyone else ha

[nyphp-talk] Wiki Style Links

2008-03-05 Thread Donald J Organ IV
I was wondering if anyone else has done this and if they have the code readily available. I want to be able to parse wiki style links such as [[page|title]] [[page]] Any suggestions ?? ___ New York PHP Community Talk Mailing List http://lists.nyphp.or