cynical825 Posted August 1, 2006 Share Posted August 1, 2006 Hi,I am looking to use some of the built-in FTP functions (http://us2.php.net/ftp) in a script I am working on and I have a quick question concerning one of the functions: [b]ftp_put[/b].Say I am going to call ftp_put(stream, remote_file, local_file, mode) . I am confused about the remote_file and local_file arguments: Remote file would be the source, correct? And local_file is the destination? Also, does this mean remote_file can be a file on the end-users computer (ie. a file path: C:\WINDOWS\whatev.exe)?Thanks for any help,--Cynical Link to comment https://forums.phpfreaks.com/topic/16267-question-concerning-ftp-functions/ Share on other sites More sharing options...
hitman6003 Posted August 2, 2006 Share Posted August 2, 2006 [quote]remote_file The remote file path. local_file The local file path. [/quote]When you execute the command you put 'local_file' on the server as 'remote_file'. In other words, remote_file doesn't have to exist, when the command is executed it copies local_file to the server as remote_file, even if the file names differ. Link to comment https://forums.phpfreaks.com/topic/16267-question-concerning-ftp-functions/#findComment-67495 Share on other sites More sharing options...
cynical825 Posted August 2, 2006 Author Share Posted August 2, 2006 Ah, thanks :). Link to comment https://forums.phpfreaks.com/topic/16267-question-concerning-ftp-functions/#findComment-67522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.