I have various html files in which I need to fill 3 Code snippets at 3 different positions. once directly after head starts, once in beginning and once in the end of the body.
I know where those html files are, cause I have a database for some other reasons, where I can also track down the html-files.
So I can run my php, getting all the files from database, then I need to check if my codesnippets are already existing in each file, if they do I do nothing, if not I need to add the snippets.
Even so php might not be the best choice, I do not have the time for now to learn something new (even though I appreciate tips, with which language this would work best for later)
I checked similar posts, but I can´t find the answer i´m seeking for