there are multiple file system functions that one can use for editing a file on a server, using the fopen() function you can open the file for editing - be sure to use the "w+" i.e. fopen("first.php", "w+") this is so that the file is not overwritten but is available for additional writing
the best thing to do is to make a copy of the file and then you can work of that copy and once your done with the editing then you can resave the file in the orginal location
- check the manual for all the other file system functions that you will need for the editing -
lata