I need to make a simple update script, what i need this script to do is:
when a user runs the script, i need it to go to the www directry, i then need it to search inside each directry for "pubster.txt"
Once it finds a directry with a pubster.txt, it needs to find index.php in that directry, delete the last 4 lines of it, and add a new part to the bottom.
Would that be possible? Because i cannot figure out a way around it
A jab in the right direction or some functions/scripts may be of help
~Thank you