Use exec for big files
This commit is contained in:
parent
bdbb4aa81a
commit
48a68828df
5
recv.php
5
recv.php
@ -131,7 +131,8 @@ if ( $result->count() > 0 ) {
|
||||
}
|
||||
|
||||
// --- Copy du fichier
|
||||
if ( copy($source, $dest) ) {
|
||||
exec("cp $source $dest", $output, $result);
|
||||
if ($result == 0) {
|
||||
|
||||
// --- Detail du fichier
|
||||
$nbLines = 0;
|
||||
@ -146,7 +147,7 @@ if ( $result->count() > 0 ) {
|
||||
chown($dest, 'ftpuser');
|
||||
chgrp($dest, 'ftpgroup');
|
||||
}
|
||||
elseif($item->depotType == 'SFTP') {
|
||||
elseif ($item->depotType == 'SFTP') {
|
||||
chown($dest, $item->client);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user