RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working From: [email protected] To: [email protected] CC: [email protected]; [email protected] Date: Sun, 27 Jun 2010 17:29:05 +0100 On Sun, 2010-06-27 at 12:23 -0400, Alice Wei wrote: Subject

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Ashley Sheridan
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: [email protected] > To: [email protected] > CC: [email protected]; [email protected] > Date: Sun, 27 Jun 2

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working From: [email protected] To: [email protected] CC: [email protected]; [email protected] Date: Sun, 27 Jun 2010 17:16:04 +0100 On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote: > D

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Ashley Sheridan
On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote: > > > Date: Sun, 27 Jun 2010 12:01:50 -0400 > > To: [email protected]; [email protected] > > From: [email protected] > > Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working > &

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
> Date: Sun, 27 Jun 2010 12:01:50 -0400 > To: [email protected]; [email protected] > From: [email protected] > Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working > > At 7:20 AM -0400 6/27/10, Alice Wei wrote: > >Hi, > > > >

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
> Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working > From: [email protected] > Date: Sun, 27 Jun 2010 13:47:53 +0200 > To: [email protected] > > You are closing your file too early. Close it outside the foreach. > An other point : you should not

Re: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread tedd
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); /

Re: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Ashley Sheridan
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 = "[email protected]"; > $comments = "Test Only"; > > $string = "\n" . $name . "\n" . $phone . > "\n". > $email . "\n" . $c