I am trying to create a simple news system and need a little help.
How would I locate a word or phrase (in this case, the random number) and remove just that line from a file?
Thanks!
You need to read the file in using file() then you need to save the file one line at a time if the line doesn't contain the string. Use foreach() and strstr().
HalfaBee