July 21st, 2000, 12:59 PM
I have a problem when I try to make an upload,
My PHP server it's with safe mode on, so I read that making a file:
cp $1 $2
And I call it "copy" on /tmp directory
And then, to copy de uploaded file I make system("/tmp/copy $file /hosting/testing");
BUT IT DOESN'T WORK, WHY???
Does anyone know another way to copy uploaded files from the /tmp???
July 21st, 2000, 06:31 PM
When you get $file from the upload the filename will be strange indeed. Here's how I do this in PHP:
of course the mydir directory should have a chmod of
777 or something like that. Unless you have your own server and are root.