note 83487 added to function.ssh2-scp-recv
| From: | gordon_e_rouse at yahoo dot com dot au | Date: | Wed, 28 May 2008 10:19:17 +0000 |
| Subject: | note 83487 added to function.ssh2-scp-recv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139911@lists.php.net to get a copy of this message | ||
Being still in Beta, I guess it will have it quirks. One I found was that if the remote filename has
brackets in it, it just wont work.
I should file it as a bug report, but find the process all intimidating really - I am always just a
stupid user who does not know what he is on about!
But anyway - the work around of renaming the file before downloading it works fine.
use:
$_new_path = str_replace("(", "", $_path );
$_new_path = str_replace(")", "", $_new_path );
ssh2_sftp_rename( $sftp, $_path, $_new_path );
To tell you the truth I haven't determined if it is the open or close bracket, or both. Someone
else can investigate that.
Meanwhile, it would be good to know all the bad filename characters which this function has problems
with, no doubt there are more.
----
Server IP: 203.88.112.146
Probable Submitter: 203.51.162.133
----
Manual Page -- http://www.php.net/manual/en/function.ssh2-scp-recv.php
Edit -- https://master.php.net/note/edit/83487
Del: integrated -- https://master.php.net/note/delete/83487/integrated
Del: useless -- https://master.php.net/note/delete/83487/useless
Del: bad code -- https://master.php.net/note/delete/83487/bad+code
Del: spam -- https://master.php.net/note/delete/83487/spam
Del: non-english -- https://master.php.net/note/delete/83487/non-english
Del: in docs -- https://master.php.net/note/delete/83487/in+docs
Del: other reasons-- https://master.php.net/note/delete/83487
Reject -- https://master.php.net/note/reject/83487
Search -- https://master.php.net/manage/user-notes.php