<?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);