I have a simple requirement to replace various text strings in a web page. The script I have in mind should be able to work on the majority of web sites, apart perhaps from complex CMS ones. The end user would click on a link that would invoke the script, with parameters being passed (as part of the query string) to identify the target page on the site.
I envisage that the solution would be to 'import' the file and then edit it before rendering the output. I am sure that this can be done easily for a static (html) page, but I am not so sure about dynamically-generated ones via PHP, Perl or the like. Would this involve execution of the relevant program? If so, are there any security issues, or reasons why this would not work in the majority of cases?
FYI, I am not that familiar with PHP, but I have extensive software development experience and a good understanding of CGI etc.
Thanks ...
Richard