Re: [PHP] transfer file

2006-06-17 Thread Ahmed Saad
Hi Richard.. On 15/06/06, Richard Lynch [EMAIL PROTECTED] wrote: HTTP just plain ain't gonna let you open a file up for writing -- thank god. I think it does in form of PUT requests.. http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html (apparently not supported by PHP streams(?)) Security

Re: [PHP] transfer file

2006-06-15 Thread Richard Lynch
On Tue, June 13, 2006 9:55 pm, kristianto adi widiatmoko wrote: $remote = fopen(http://B/file.txt,w+); HTTP just plain ain't gonna let you open a file up for writing -- thank god. Can you imagine the number of websites that would get hacked? [shudder] But if you have FTP access to B, you can

Re: [PHP] transfer file

2006-06-13 Thread Chris
kristianto adi widiatmoko wrote: i try to transfer file from one server to another server, lets call it server A to server B. My Idea is like this I place my script in server A ?php $local = fopen(file.txt,r); $remote = fopen(http://B/file.txt,w+); while(!feof($local)) { $buff =

Re: [PHP] transfer file

2006-06-09 Thread Richard Lynch
On Thu, June 8, 2006 10:16 pm, kristianto adi widiatmoko wrote: can php do transfer file betwen 2 server without using ftp function socket that use ftp port If you want to re-write all the FTP stuff in PHP, with http://php.net/fsockopen and fgets and fputs, sure, you could do that... Kinda

Re: [PHP] transfer file

2004-10-25 Thread raditha dissanayake
Akshay wrote: How to transfer text file from one machine to another using php Please give the code if possible It depends on what protocol you want to use. Please pick from FTP, HTTP, NFS etc and let us know. akshay -- Raditha Dissanayake.