4. are you sure '/home/user/v2' file exists on remote host?
On 18 September 2013 18:55, Ivan Kurnosov <[email protected]> wrote: > 1. ini_set('display_errors', 1); > 2. error_reporting(E_ALL | E_STRICT); > 3. var_dump($sftp, $str); > > > On 18 September 2013 18:39, Karthik Shankar <[email protected]> wrote: > >> hi, I tried this code.... >> <?php >> $connection = ssh2_connect('example.com', 22); >> ssh2_auth_password($connection, 'user', 'pass'); >> $stream = ssh2_exec($connection, '/usr/bin/perl /home/user/filename.plsbm'); >> $sftp = ssh2_sftp($connection); >> $str=ssh2_scp_recv($connection, '/home/user/v2', '/tmp/godknows'); >> ?> >> >> Its executing fine but the file is empty, please help me out.... >> >> >> -- >> -- >> NZ PHP Users Group: http://groups.google.com/group/nzphpug >> To post, send email to [email protected] >> To unsubscribe, send email to >> [email protected] >> --- >> You received this message because you are subscribed to the Google Groups >> "NZ PHP Users Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > With best regards, Ivan Kurnosov > -- With best regards, Ivan Kurnosov -- -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] --- You received this message because you are subscribed to the Google Groups "NZ PHP Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
