note 104124 added to function.ssh2-scp-recv

From: Date: Wed, 25 May 2011 08:37:46 +0000
Subject: note 104124 added to function.ssh2-scp-recv
Groups: php.notes 
Request: Send a blank email to php-notes+get-180011@lists.php.net to get a copy of this message
Trying to get a remote file with spaces in its name? Never forget to use quotes in the remote filename, but never in the local one. Example: $remote_file_name="my name with spaces.ext" ssh2_scp_recv($cn,$remote_file_name,$local_path."/".$remote_file_name); // ERROR ssh2_scp_recv($cn,"\"".$remote_file_name."\"",$local_path."/".$remote_file_name); //OK ssh2_scp_recv($cn,"\"".$remote_file_name."\"","\"".$local_path."/".$remote_file_name."\""); //ERROR So, the quotes in the file name are needed only for remote, not for local. ---- Server IP: 69.147.83.197 Probable Submitter: 87.217.125.20 ---- Manual Page -- http://www.php.net/manual/en/function.ssh2-scp-recv.php Edit -- https://master.php.net/note/edit/104124 Del: integrated -- https://master.php.net/note/delete/104124/integrated Del: useless -- https://master.php.net/note/delete/104124/useless Del: bad code -- https://master.php.net/note/delete/104124/bad+code Del: spam -- https://master.php.net/note/delete/104124/spam Del: non-english -- https://master.php.net/note/delete/104124/non-english Del: in docs -- https://master.php.net/note/delete/104124/in+docs Del: other reasons-- https://master.php.net/note/delete/104124 Reject -- https://master.php.net/note/reject/104124 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180011) next »