in reply to File Manipulation
I'm assuming this is a snippet from your actual script.
You never tell us what $OTP, $PPP, $PWFILE are.
Your description of the problem is a little hard to understand.
You want to run this script to take a line from a text file, and copy it to the html site.
Then you want to delete the file, or just the line in the file?
It adds additional parameters? To what? Where? The line that gets to the html page? To the original file?
You need it to stay perfectly the same, the original file, the line you copy or something else?