Hallo,
ich versuche gerade hiermit:
$source = ('c:/Programme/ISDNCall/Incoming');
$target = ('c:/programme/ip-symcon_2_0/webfront/user/ab');
function full_copy( $source, $target )
{
if ( is_dir( $source ) )
{
@mkdir( $target );
$d = dir( $source );
while ( FALSE !== ( $entry = $d->read() ) )
{
if ( $entry == '.' || $entry == '..' )
{
continue;
}
$Entry = $source . '/' . $entry;
if ( is_dir( $Entry ) )
{
full_copy( $Entry, $target . '/' . $entry );
continue;
}
copy( $Entry, $target . '/' . $entry );
}
$d->close();
}else
{
copy( $source, $target );
}
}
?>
Dateien zu kopieren, aber es wird nicht kopiert. leider aber auch keine Fehlermeldung.
kann mir jemand sagen was ich falsch gemacht habe ?
PS Script habe ich gegooglet.