note 89986 added to function.ftp-put
| From: | Kev at osu1 dot php dot net | Date: | Wed, 01 Apr 2009 04:36:14 +0000 |
| Subject: | note 89986 added to function.ftp-put | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152679@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
ftp_chdir($conn, '/www/site/');
ftp_put($conn,'file.html', 'c:/wamp/www/site/file.html', FTP_BINARY );
----
Server IP: 117.55.229.1
Probable Submitter: 150.101.164.244
----
Manual Page -- http://www.php.net/manual/en/function.ftp-put.php
Edit -- https://master.php.net/note/edit/89986
Del: integrated -- https://master.php.net/note/delete/89986/integrated
Del: useless -- https://master.php.net/note/delete/89986/useless
Del: bad code -- https://master.php.net/note/delete/89986/bad+code
Del: spam -- https://master.php.net/note/delete/89986/spam
Del: non-english -- https://master.php.net/note/delete/89986/non-english
Del: in docs -- https://master.php.net/note/delete/89986/in+docs
Del: other reasons-- https://master.php.net/note/delete/89986
Reject -- https://master.php.net/note/reject/89986
Search -- https://master.php.net/manage/user-notes.php