Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working
From: a...@ashleysheridan.co.uk
To: aj...@alumni.iu.edu
CC: tedd.sperl...@gmail.com; php-general@lists.php.net
Date: Sun, 27 Jun 2010 17:29:05 +0100
On Sun, 2010-06-27 at 12:23 -0400, Alice Wei wrote:
Subject
On Sun, 2010-06-27 at 12:23 -0400, Alice Wei wrote:
>
> Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working
> From: a...@ashleysheridan.co.uk
> To: aj...@alumni.iu.edu
> CC: tedd.sperl...@gmail.com; php-general@lists.php.net
> Date: Sun, 27 Jun 2
Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working
From: a...@ashleysheridan.co.uk
To: aj...@alumni.iu.edu
CC: tedd.sperl...@gmail.com; php-general@lists.php.net
Date: Sun, 27 Jun 2010 17:16:04 +0100
On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote:
> D
On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote:
>
> > Date: Sun, 27 Jun 2010 12:01:50 -0400
> > To: aj...@alumni.iu.edu; php-general@lists.php.net
> > From: tedd.sperl...@gmail.com
> > Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working
> &
> Date: Sun, 27 Jun 2010 12:01:50 -0400
> To: aj...@alumni.iu.edu; php-general@lists.php.net
> From: tedd.sperl...@gmail.com
> Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working
>
> At 7:20 AM -0400 6/27/10, Alice Wei wrote:
> >Hi,
> >
> >
> Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working
> From: lexsi...@gmail.com
> Date: Sun, 27 Jun 2010 13:47:53 +0200
> To: aj...@alumni.iu.edu
>
> You are closing your file too early. Close it outside the foreach.
> An other point : you should not
At 7:20 AM -0400 6/27/10, Alice Wei wrote:
Hi,
I have the code as in the following:
$string = "\n" . $name . "\n" . $phone
. "\n".
$email . "\n" . $comments .
"\n";
//If file exists. append, otherwise create
$file = "messages.xml";
$fh = fopen($file,"a");
$lines = file($file);
/
On Sun, 2010-06-27 at 07:20 -0400, Alice Wei wrote:
> Hi,
>
> I have the code as in the following:
>
>
> $name= "Test";
> $phone= "123-456-7890";
> $email = "myem...@mymail.com";
> $comments = "Test Only";
>
> $string = "\n" . $name . "\n" . $phone .
> "\n".
> $email . "\n" . $c
8 matches
Mail list logo