Hi there all. I'm just going a bit mad about all this code:
I use PHP to make a form with FILE input types, named like file1, file2, file3 and such.
After submitting the form, i use the following code to upload the files:
$var = "file$a";
$varname = "file$a"."_name";
$var2=$$var;
$var2name = $$varname;
$Destiny="temp/".$var2name;
if($var2name != "" && !file_exists($var2)){
copy($var2,$Destiny);
}
Sometimes it uplaods the files, but some other times it gives me an error on PHP4TS.DLL, and returns a 500 server error. I just don't know what to do, because i cannot make any kind of depuration to the code.
I've tried everything i could think of, but i still get all this errors.
Pleas someone help me. I need a way to upload multiple files (as many as 25 at a time) and i don't know how to do it without errors.
Ah, one thing. I'm NOT using file[] in the HTML form. I already read about that.
My system is WindowsME, Apache 1.3.22 and PHP 4.0.6
Thanks very much in advance.
fLIPIS