RE: [PHP] Still problem with files

From: Date: Fri, 18 Jul 2003 20:58:17 +0000
Subject: RE: [PHP] Still problem with files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155840@lists.php.net to get a copy of this message
Yep, but am I doing it right I don't know. This is the line that will be written to the database (there will be 130 of them). $p = "<Option Value=\"131\">Player Name"; So where do I put the \r\n. I have tried just \n at the end, but same thing. $p = "<Option Value=\"131\">Player Name\n"; TIA -----Original Message----- From: skate [mailto:root@fatcuban.com] Sent: July 18, 2003 11:18 AM To: Beauford.2005; 'Curt Zirzow'; 'PHP' Subject: Re: [PHP] Still problem with files 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#155840) next »