> Hvilken kommando bruger du til at tilgå filen med?
Scriptet ser sådan ud : (jeg er ikke skrap, det kunne sikkert gøres bedre)
if ($sendit) {
if (( $uploadfile1_name != "" ) || ( $uploadfile2_name != "" ) || (
$uploadfile3_name != "" ) || ( $uploadfile4_name != "" ) || (
$uploadfile5_name != "" ) || ( $uploadfile6_name != "" ) || (
$uploadfile7_name != "" ) || ( $uploadfile8_name != "" ) || (
$uploadfile9_name != "" ) || ( $uploadfile10_name != "" )) {
$uploadtemp1 = $uploadfile1;
$uploadtemp2 = $uploadfile2;
$uploadtemp3 = $uploadfile3;
$uploadtemp4 = $uploadfile4;
$uploadtemp5 = $uploadfile5;
$uploadtemp6 = $uploadfile6;
$uploadtemp7 = $uploadfile7;
$uploadtemp8 = $uploadfile8;
$uploadtemp9 = $uploadfile9;
$uploadtemp10 = $uploadfile10;
$original = array(
"$uploadtemp1"
,"$uploadtemp2"
,"$uploadtemp3"
,"$uploadtemp4"
,"$uploadtemp5"
,"$uploadtemp6"
,"$uploadtemp7"
,"$uploadtemp8"
,"$uploadtemp9"
,"$uploadtemp10"
);
$uploadreal1 = $uploadfile1_name;
$uploadreal2 = $uploadfile2_name;
$uploadreal3 = $uploadfile3_name;
$uploadreal4 = $uploadfile4_name;
$uploadreal5 = $uploadfile5_name;
$uploadreal6 = $uploadfile6_name;
$uploadreal7 = $uploadfile7_name;
$uploadreal8 = $uploadfile8_name;
$uploadreal9 = $uploadfile9_name;
$uploadreal10 = $uploadfile10_name;
$file = array(
"$uploadreal1"
,"$uploadreal2"
,"$uploadreal3"
,"$uploadreal4"
,"$uploadreal5"
,"$uploadreal6"
,"$uploadreal7"
,"$uploadreal8"
,"$uploadreal9"
,"$uploadreal10"
);
for($I = 0; $I <=9; $I++){
$file[$I] = ereg_replace(" ", "_", $file[$I]);
$file[$I] = ereg_replace("%20", "_", $file[$I]);
$file[$I] = strtolower($file[$I]);
$copyfile = "$up_dir/$file[$I]";
@copy($original[$I], $copyfile);
if ($file[$I] != "") {
echo "Filen <A
HREF=\"open.php?show=$dir&display=$file[$I]\"><b>$file[$I]</b></A> blev
uploadet korrekt<br>\n";
}
//@unlink($original[$I]);
} // end of for
MVH/ Niels Bachmann
--
"Mandrake.... Have you ever seen a 'commie drink a glass of water?"
http://www.precious.dk