Re: Transferring files between computers using php
| From: | Chris | Date: | Fri, 07 Mar 2008 02:57:37 +0000 |
| Subject: | Re: Transferring files between computers using php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271106@lists.php.net to get a copy of this message | ||
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/