I'm working on a project that uses a lot of PHP3.
In order to make the PHP3 scripts work on any server we put them on, all HTML links are relative rather than absolute.
The problem is that I have to send out HTML encoded email to a mailing list once a month and find myself having to grab the HTML output created by the web browser, save it to an HTML file and edit the file in order to convert all the relative links to an absolute link. This has to be done in order to make the links, found on the HTML encoded email I send to users, work properly.
What I want to do is create a script (PHP3 or Perl based) that will execute a PHP3 web page, write the resulting HTML code to a normal HTML web page, have the script translate the links from relative to absolute and then send the results to a mailing list.
The requirements listed above can be broken down into three separate issues. The last two issues I can handle. The first issue (execute a PHP3 web page and write the resulting HTML code to a normal HTML web page)is what I am having a problem with.
What I ultimately want to have happen is to wrap all these requirements into a "program" that will run by itself with a minimum effort on my part to create the required end results.
Any ideas?
Thanks,
-- Brian