I need to read through an Apache httpd.conf file, and find the following line:
#LoadModule blah blah
and uncomment it, i.e., replace it with
LoadModule blah blah
The catch here is that since the conf file can vary, there is a real possibility that the LoadModule line has already been uncommented.
There is also a possibility that the line simply isn't there, in this case my script has to add such a line to it at the end of the conf file.
Any idea how to write this in PHP?