[英]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 如何使用php将一个域的内容复制到另一个域
if (!($stream = ssh2_exec($con, $movePathCMD))) { 如果(!($ stream = ssh2_exec($ 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
? 而不是你的
while
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.