Moving Contents of One Domain to another Domain
How to copy The contents of one domain to another domain using php I used this command
if (!($stream = ssh2_e开发者_Python百科xec($con, $movePathCMD))) {
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);
}
?> But its not woking. Can you please Correct this code for me.
Have you tried
stream_get_contents($stream);
instead of your while
?
精彩评论