Re: [PHP] periodic file writing error (fputs)

2004-08-05 Thread Jason Wong
On Friday 06 August 2004 02:50, Sarah Gray wrote: > I am having a periodic problem that I cannot duplicate and wonder if > anyone has suggestions. > > Once a sale is completed a record is written to a log file on the > server. > > $filename = $dir. "/". $logType."_".$today.".txt"; > $fp = fopen("$

Re: [PHP] periodic file writing error (fputs)

2004-08-05 Thread John W. Holmes
From: "Sarah Gray" <[EMAIL PROTECTED]> > Once a sale is completed a record is written to a log file on the > server. > > $filename = $dir. "/". $logType."_".$today.".txt"; > $fp = fopen("$filename", "a+"); > fputs($fp, $logEntryStr); > fclose($fp); Consider this: 1. User A completes a transactio

RE: [PHP] periodic file writing error (fputs)

2004-08-05 Thread Jay Blanchard
[snip] I am having a periodic problem that I cannot duplicate and wonder if anyone has suggestions. Once a sale is completed a record is written to a log file on the server. $filename = $dir. "/". $logType."_".$today.".txt"; $fp = fopen("$filename", "a+"); fputs($fp, $logEntryStr); fclose($fp);

[PHP] periodic file writing error (fputs)

2004-08-05 Thread Sarah Gray
Hello, I am having a periodic problem that I cannot duplicate and wonder if anyone has suggestions. Once a sale is completed a record is written to a log file on the server. $filename = $dir. "/". $logType."_".$today.".txt"; $fp = fopen("$filename", "a+"); fputs($fp, $logEntryStr); fclose($fp);