thanks for your reply devinemke, ok.. lets say this function does the copying part, but I want to do it remotely, means.. entering the URL and it'd be nice if it can scan+copy from a remote site.
any idea how its done?
TIA
function backup($extension) {
$counter = 0;
foreach(glob(�*� . �$extension�) as $file) {
if ($extension{0} != �.�) {
$extension = �.� . $extension;
}
$file2 = �./backup/� . �$file�;
$counter++;
copy($file, $file2);
}
if ($counter == 0) {
return false;
} else {
return true;
}
}
/* Copy all images */
$extension_array = array(�.jpg�, �.gif�, �.png�, �.bmp�);
foreach($extension_array as $key => $value) {
backup($extension);
}