Rahul wrote:
I have a small file to be transferred between two computers every few seconds. I'm using unix with a bare bones version of php, i.e. just the original thing that gets installed when I run "yum install php". As there is no webserver on any of these machines, I was wondering if there is a way to transfer a small file between them and if there is, could someone be kind enough to provide me with an example please?

Don't use php, use rsync (http://rsync.samba.org/).

It's fast, only transfers differences between the files, can work via an ssh connection etc...

I guess you could also use a samba or an nfs mounted drive, but that may depend on whether the machines are in a local environment or not (I certainly wouldn't do it across an open internet connection, only via a LAN connection).

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to