How to check successful copy() function execution in php?
- by OM The Eternity
How to check successful copy() function execution in php?
I am using the following code:
<?
function full_copy( $source, $target ) {
if ( is_dir( $source ) ) {
@mkdir( $target );
$d = dir( $source );
while ( FALSE !== ( $entry = $d->read() ) ) {
if ( $entry == '.' || $entry == '..' ) {
…