PDA

View Full Version : Can it be done in CGI?


gogokick
07-04-2005, 10:57 AM
My problem is this: there is a text file that I want to overwrite, by a website using CGI, automatically during every 15 minutes or so. The text file is located at several computers, which means I want all the files to be overwrited . Can it be done in CGI?

mlseim
07-04-2005, 04:12 PM
So you have your own server with your own network and you want to go out and change a file in several of the PC's on your network? I don't understand because a website doesn't do any file writing. It's a Perl or PHP script that writes to files in a server. You'll have to elaborate on what you're actually writing.

bazz
07-04-2005, 09:03 PM
Do you mean, you have a website which is mirrored on several computers and which using a perl script, updates a text file in each of the sites, every 15mins.

Since one of the powers of perl is file handling, I would think it can be done but as mlseim says, we need to know more.

Please post the code so far.

Bazz