I have a text file as follows;
I need to add new lines (host=ipaddress.com)after the string [context]. Can someone let me know how this can be done? I am trying to use someting line the following code, thank you.
$fp = fopen('/file.txt', 'a+');
fseek($fp, 2, SEEK_SET);