Page 1 of 1

copy file to remote computer

Posted: Tue Aug 26, 2008 9:24 am
by ramsei
I use HTTP with CURL/file_get_contents/fopen to copy/write file contents from remote server to local file.

Now, I need to copy local binary file into remote Win XP computer: C:/remote-folder-path/file . I only have remote IP address. This remote computer is not on LAN, if computer was, then very easy; simply cut and paste :).

I tried using PHP FTP: ftp_connect but I think remote computer needs FTP program to be installed for it to work.

Can this be done with fsockopen and send file through open port? Or some other way?

Re: copy file to remote computer

Posted: Tue Aug 26, 2008 10:23 am
by pkbruker
Installing an FTP-server would be a good idea. You need some sort of program which can recieve the file (otherwise one could upload files to just about any computer).

Re: copy file to remote computer

Posted: Tue Aug 26, 2008 10:40 am
by ramsei
If I cannot send a file through a port, then why install a software firewall to block ports like what Zonealarm does ?

Re: copy file to remote computer

Posted: Tue Aug 26, 2008 10:56 am
by dajawu
Its not files you need to worry about, some ports that are for other reasons can be bombarded with junk info causing problems to the remote computer. Back in the day there was a WinNuke program that would send info to some port (113 or something) and cause a Blue Screen of Death.