Thanks planetsim,
i got a script from ur help and try to apply it but give file not found error
script is
$filename="Download_files.rar";
$downloaddir="/home/mydomain/public_html/test2/ruf";
$safedir="/home/mydomain/public_html/test2/download";
$downloadURL="http://www.mydomain.com.pk/test2/ruf";
$letters = 'abcdefghijklmnopqrstuvwxyz';
srand((double) microtime() * 1000000);
$string = '';
for ($i = 1; $i <= rand(4,12); $i++) {
$q = rand(1,24);
$string = $string . $letters[$q];
}
$handle = opendir($downloaddir);
while ($dir = readdir($handle)) {
if (is_dir($downloaddir . $dir)){
if ($dir != "." && $dir != ".."){
@unlink($downloaddir . $dir . "/" . $filename);
@rmdir($downloaddir . $dir);
}
}
}
closedir($handle);
mkdir($downloaddir . $string, 0777);
symlink($safedir . $filename, $downloaddir . $string . "/" . $filename);
Header("Location: " . $downloadURL . $string . "/" . $filename);
please check and guid me....