have you tried \r\n ? ----- Original Message ----- From: "Beauford.2005" <[EMAIL PROTECTED]> To: "'Curt Zirzow'" <[EMAIL PROTECTED]>; "'PHP'" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > Sent: July 18, 2003 1:50 AM > To: PHP > Subject: Re: [PHP] Still problem with files > > > Curt Zirzow <[EMAIL PROTECTED]> wrote: > > Beauford.2005 <[EMAIL PROTECTED]> 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php