Write to the second line of a PHP file
- by Woz
I have a php file that I want to add an include path to on the second line. I need to open the file and inset a line of code on line 2.
I have tried a few techniques none of which are working but I think it has something to do with the text I am trying to write and possibly not escaping character correctly as I am not too familiar with file…