http://www.perlmonks.org?node_id=229423

belize has asked for the wisdom of the Perl Monks concerning the following question:

I am working on a CGI that allows me to update html pages on two different servers with the same information. I am trying to identify the "best" way to do this as the pages have different headers and footers and I only what to input the data into a form once.

I could use SSI within each page and call a CGI that would pull the same information from a remote file, but I am worried about the overhead a CGI would have each time the page is called and also the time required to pull a remote file.

I don't think SSI include can call a remote file.

What I would like is to have a CGI write the same .txt file to each server and then just call the local .txt file with SSI include from the respective servers.

Any ideas on the best approach to writing files to multiple remote servers and what are the security/coding dangers/problems to look out for?