Re: Help Needed with CSV & PHP

From: Date: Thu, 06 Jul 2000 00:31:47 +0000
Subject: Re: Help Needed with CSV & PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-5115@lists.php.net to get a copy of this message
Jeff Gannaway wrote: > At 05:00 PM 7/4/00 -0400, Mike Gifford wrote: > >How will this avoid the problem of confusing what separates the > >different elements. > Substitue ever occurence of : in the original variables with something > whacky that you'd expect no human being to EVER type in into an INPUT box > like: I did something like this in the first place using :::, instead of : but I wasn't able to get that to work for some reason. I may try this approach if I can't get example that follows yours: $new = str_replace(':',chr(0),$old); to work. > The only wierd thing is that there is still a chance some dork will enter > ColonColonColonColon or whater your whacky code phrase is and the end > result is that it got turned into a : People will do rediculous things, but you'd need a lot of monkeys in a room with keyboards to get them to type in "ColonColonColonColon" > If you were REALLY concerned about that, you could check for occurences of > your code phrase before rplacing the : with it and if it does exist, then > add a varaible to "mark" which ones to ignore. It isn't critical info, just an annoyance I want to remove. Mike -- Mike A. Gifford OpenConcept Consulting Mike@OpenConcept.On.Ca Http://www.OpenConcept.On.Ca Web Design, Hosting, Graphic Design & Site Promotion Featured Site --> Http://WTOAction.Org

« previous php.general (#5115) next »