RE: [PHP] Still problem with files
| From: | Beauford.2005 | Date: | Thu, 17 Jul 2003 14:40:23 +0000 |
| Subject: | RE: [PHP] Still problem with files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155773@lists.php.net to get a copy of this message | ||
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