Things to remember:
When using $_POST['submit'] to check if the file has been submitted, FFS make sure you name the submit form 'submit' in the input tag.
Also, $HTTP_POST_VARS apparently does not work with PHP5, nor does $HTTP_POST_FILES. The latter is $_FILES. The former..?
Wow. So I spend about 3 hours making a simple file upload script. Why 3 hours? A while was spent realizing that I'm working out of a book that uses old commands. That's frustrating. Then I realized I wasn't moving the uploaded file to my directory because of permission issues. I turned the permissions to read/write/execute for all users. That's probably not a good idea, right?
How would one fix this issue? PHP safe mode is already off, and I couldn't find the apache configuration file that would let me turn off safe mode for that site. I'm guessing it all came down to the fact that the directory was guarded.
grabfile.php
Wednesday, November 17, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment