100 Web Space

Handling uploaded files with php (input type=file)
Page 1 of 1

Author:  hatrickpatrick [ Tue Aug 21, 2007 5:10 pm ]
Post subject:  Handling uploaded files with php (input type=file)

I have a problem - I'm writing a script for users to upload screenshots and guitar effects, but for some weird reason it won't upload - I'm getting it to FTP the file to another server, which will host those files for the site. Problem - the files are, indeed, being uploaded, but they're always empty, at 0 bytes... phpinfo() says there's no upload_tmp_dir set, so that could be the problem... How do I set a value for this? I tried a .htaccess with this line:

php_value upload_tmp_dir "./upload/"

and now it gives me 500 internal server error...

Can anyone help?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group