erase from file (php)

Status
Not open for further replies.
You could read the contents of the file into a string, remove the line from the string, and overwrite the edited string back to the file.
 
can you put that in a code example? I'm not entirely sure how to go about doing so.

zach
 
Research. Use Google. I won't do the work for you. You need to attempt it yourself. If you run into specific problems, post your code and we'll go over it. The file I/O can be done in a few lines of code. If you're only deleting one line of text, the entire script should probably be no longer than 10 - 20 lines.
 
Status
Not open for further replies.
Back
Top Bottom