My PHP.ini file sets the following:
file_uploads = on
upload_max_file size = 3M
upload_tmp_dir = /tmp
When I try and upload the file, it doesn't appears in /tmp.
The name of the Submit button is userFile. On the processing page, I
echo $userFile and it gives "/tmp/phpjXJ1ZK". However, the following
code does nothing:
copy($userfile,
"/www/servers/guinfit/uploads/".$HTTP_POST_FI LES['userfile']['name']);
Can anyone think of anything that might be wrong? It works under one
Linux installation, but not in the other. The php.ini upload settings
are exactly the same, and chmodding the /tmp/ to 777(!) doesn't work, so
I don't think it's a permissions problem.
Thanks in advance for any replies!!!
file_uploads = on
upload_max_file size = 3M
upload_tmp_dir = /tmp
When I try and upload the file, it doesn't appears in /tmp.
The name of the Submit button is userFile. On the processing page, I
echo $userFile and it gives "/tmp/phpjXJ1ZK". However, the following
code does nothing:
copy($userfile,
"/www/servers/guinfit/uploads/".$HTTP_POST_FI LES['userfile']['name']);
Can anyone think of anything that might be wrong? It works under one
Linux installation, but not in the other. The php.ini upload settings
are exactly the same, and chmodding the /tmp/ to 777(!) doesn't work, so
I don't think it's a permissions problem.
Thanks in advance for any replies!!!
Comment