[phorm] [Phorm:] Re: How to write-over my log file?

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 10 Mar 2004 13:08:32 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#3847) Re: How to write-over my log file? 
            <http://www.phorm.com/support/?rev=3847> 
  AUTHOR:   Holotech 
  DATE:     March 10, 2004 at 8:08 a.m. EST 

  Reply To: (#3844) How to write-over my log file? 
  Author:   Tim Ambler 
  Date:     March 10, 2004 at 1:20 a.m. EST 

> My question is... how can I set this up so that EVERY 
> time the form is submitted, my log file is cleared and 
> then contains only the new data? 

You'll have to hack Phorm. Change line 1631 from this: 

if (!$ph_lf[$ph_key] = @fopen("$ph_tpd/$lPHORM_LOG", "a")) { 

to this: 

if (!$ph_lf[$ph_key] = @fopen("$ph_tpd/$lPHORM_LOG", "w")) { 

(change "a" to "w") 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Re: How to write-over my log file?