Page 2 of 2

Posted: Mon Jul 02, 2007 8:37 pm
by nayeemmz
Thanks Volka,

Finally this code,

Code: Select all

$sftp = ssh2_sftp($conn);    

 $file = fopen("ssh2.sftp://$sftp/path-to-file-on the remote server", "w")
 
  fputs($file, $var);  

 //$var is the variable where I stored the database output that needed to be sent to the file server

 fclose($file);
did the trick. Thanks for spending your time on this.

May be someone else could also use it.

Thanks

-Nayeem