Re: Still problem with files

From: Date: Fri, 18 Jul 2003 15:17:40 +0000
Subject: Re: Still problem with files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155779@lists.php.net to get a copy of this message
have you tried \r\n ? ----- Original Message ----- From: "Beauford.2005" <beauford.2005@rogers.com> To: "'Curt Zirzow'" <curt@zirzow.dyndns.org>; "'PHP'" <php-general@lists.php.net> Sent: Thursday, July 17, 2003 3:40 PM Subject: RE: [PHP] Still problem with files > For whatever reason your suggestions still caused me problems, but I did > come up with a solution that works. > > if (preg_match ("/Alfredsson/", $buffer)) > > Another question though regarding \n. What I'm doing here is reading the > file, omitting one entry, adding another, and saving it back to the > file. When I add the entry and save it back to the file it appears > beside the last entry instead of below it. How do I get it so it is > below it. I have tried using a \n but no go. I am probably missing > something, but not sure what. This is the first time I've played with > files in PHP. > > i.e. > > <Option Value="155">Roy, P > <Option Value="77">Theodore > <Option Value="26">Thibault<Option Value="68">Worrel > > -----Original Message----- > From: Curt Zirzow [mailto:curt@zirzow.dyndns.org] > Sent: July 18, 2003 1:50 AM > To: PHP > Subject: Re: [PHP] Still problem with files > > > Curt Zirzow <curt@zirzow.dyndns.org> wrote: > > Beauford.2005 <beauford.2005@rogers.com> wrote: > > > > > > i.e > > > > > > $p = "<Option Value=\"131\">Alfredsson"; > > And watch out for case sensitive issues > 'Option' != 'option' > > Curt > -- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#155779) next »