I am having weird things happen with a script that copies an uploaded file to a tmp directory.
I actually have 2 scripts (both in separate directories) and the first one works okay.
code 1:
copy($uploadedfile,"tmp/$uploadedfile_name");
This works fine.....but then I created another page in another directory with exactly the same code but it returns errors.
code 2
copy($uploadedfile,"../tmp/$uploadedfile_name");
Now I know what you are thinking...you are thinking it is something to do with the path?? well I changed the code to this:
copy($uploadedfile,"../tmp/test.file");
And it worked beautifully....like it SHOULD.
so for some reason the second script isn't getting the file_name of the uploaded file.??...yet it is identical to the first one.
I am developing in a laptop running php4.0.1, w2k,apache 1.3.2
Any ideas??........anyone??
rgds,
scottd