note 89986 modified in function.ftp-put by danbrown

From: Date: Wed, 01 Apr 2009 04:37:58 +0000
Subject: note 89986 modified in function.ftp-put by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152680@lists.php.net to get a copy of this message
Got this cryptic error Warning: ftp_put() [function.ftp-put]: 'STOR' not understood in C:\wamp\www\kevtest\ftp_todays.php on line 48 Found the prob, you can't put a path to the destination file (even though I can do that in the dos ftp client...?) e.g. - this doesn't work ftp_put($conn, '/www/site/file.html','c:/wamp/www/site/file.html',FTP_BINARY); you have to put <?php ftp_chdir($conn, '/www/site/'); ftp_put($conn,'file.html', 'c:/wamp/www/site/file.html', FTP_BINARY ); ?> --was-- Got this cryptic error Warning: ftp_put() [function.ftp-put]: 'STOR' not understood in C:\wamp\www\kevtest\ftp_todays.php on line 48 Found the prob, you can't put a path to the destination file (even though I can do that in the dos ftp client...?) e.g. - this doesn't work ftp_put($conn, '/www/site/file.html','c:/wamp/www/site/file.html',FTP_BINARY); you have to put ftp_chdir($conn, '/www/site/'); ftp_put($conn,'file.html', 'c:/wamp/www/site/file.html', FTP_BINARY ); http://php.net/manual/en/function.ftp-put.php

« previous php.notes (#152680) next »