--
PLEASE NOTE: comp.infosystems.www.authoring.cgi is a
SELF-MODERATED newsgroup. aa.net and boutell.com are
NOT the originators of the articles and are NOT responsible
for their content.
HOW TO POST to comp.infosystems.www.authoring.cgi:
http://www.thinkspot.net/ciwac/howtopost.html
What kind of interaction are you specifically looking for? You say open()
so are you just wanting to read a file from the remote server, or...?
A request like this requires a bit more detail to get an answer of any
substance...
--
Vorxion - Member of The Vortexa Elite
SR> I am in a bit of a pickle, I am trying to find a way to get my
SR> programs on one server to interact with files on another server.
I just know that PHP can do that out of the box.
Lüko Willms http://www.mlwerke.de
/--------- L.WI...@jpberlin.de -- Alle Rechte vorbehalten --
"Das Volk, das ein anderes Volk unterjocht, schmiedet seine eigenen
Ketten." - Karl Marx (1. Januar 1870)
It is in most cases alot harder than just "open" a file
- If the other server is on the same local network you may share
a directory using NFS or some other form of file sharing. You still
have problem if the file is used from both servers, you may have
to lock it somehow.
- If you can't share disk you can copy the file over using protocols
like rcp, ftp, or http and when the update is done copy it back.
- If you have http access to the other machine you can write CGI
scripts hosted on the other server to edit the file there. These
CGI scripts are only for internal use, i.e. to be called from
the CGI script on the first server. From perl you can use the LWP
modules to access the other CGI.
- If you edit lots of files on one site and only want to copy the
updated files in a regular interval to the other site then "rsync"
can be used (not that easy to set up with cron and passprases).
- The easiest solution is of cause to run the CGI on the server
that has the file to edit. You can run a web server that only
do that.
There are lots of security issues involved in most of the solutions.
Without more details it is not possible to answer this question.
Are both servers under your control in a local network? How do you
access them, FTP, telnet, ssh or only http? Is the file in question
to be edited from both servers? If not, how fast do you need the
update to go to the server not updating it? What operating system
and what programming language?
kent
If this that filesystem is mounted locally, then this happens completely
transparent. Everything is done by the operating system for you.