Moving Contents of One Domain to another Domain
<p>How to copy The contents of one domain to another domain using php
I used this command</p>

<p>

<p>if (!($stream = ssh2_exec($con, $movePathCMD)))
 {</p>

<pre><code>                die("fail: unable to execute command");
            } else {

                // collect returning data from command

                  stream_set_blocking($stream, true);
                $data = "";
                while ($buf = fread($stream, 4096)) {
                    $data .= $buf;
                }
                fclose($stream);
            }
</code></pre>

<p>?>
But its not woking. Can you please Correct this code for me.</p>
