<?php
$descriptorspec = array(
1 => array('pipe', 'w'),
2 => array('pipe', 'w'),
);
$pipes = array();
$command = "cp -r /源文件目录/* /目标文件目录";
$resource = proc_open($command, $descriptorspec, $pipes);
<?php
$descriptorspec = array(
1 => array('pipe', 'w'),
2 => array('pipe', 'w'),
);
$pipes = array();
$command = "cp -r /源文件目录/* /目标文件目录";
$resource = proc_open($command, $descriptorspec, $pipes);