开发者

Moving Contents of One Domain to another Domain

开发者 https://www.devze.com 2023-01-19 02:50 出处:网络
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)))

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 ?

0

精彩评论

暂无评论...
验证码 换一张
取 消