I think I've isolated the problem.  I was using the "stripslashes()" function when passing the edited contents of the file to the filestream.  I've removed the call to stripslashes and simply passed the entire contents as an unadulterated variable.  It seems to have done the trick.
 
Regards,
 
Pat Dupuis
----- Original Message -----
From: Pat Dupuis
Sent: Monday, June 19, 2000 11:20 AM
Subject: [FreeTrade] fputs and PHP scripting

Hi all:
 
I've managed to configure a "File Editor" which loops through each line of a selected file and displays it in a <textarea> box.  Modifications can be made to the file and changes to the file are sent and written using the "fputs" function.  It is functioning well, except for one thing -- any changes to a file containing PHP scripting in it seems to create some major errors.  Is this happening because fputs works in Binary mode (as opposed to ASCII)?  Does anyone know of a work-around to this particular scenario?  Any help or guidance offered would be greatly appreciated.  Thanks in advance!
 
Regards,
 
Pat Dupuis

Reply via email to