I am trying to use the <input type="file"... on a form and the copy() function to allow the user to select an image and then copy it to a directory on the server.
When I test it, I get a warning like this:
Warning: max file size of 0 bytes exceeded-file not saved
Under my PHP.ini file (in windows) it shows the upload_max_filesize set to 2097152, but when I look under phpinfo() it has it set to 0 under Configurations.
I am fairly new at PHP, but I have researched this problem for many, many hours and I am coming up with nothing. If you have any information I would greatly appreciate it. Please be as detailed as possible.
Why is it showing the upload_max_filesize under phpinfo() set to 0 and how can I change it? I appreciate any help you can offer. Thanks in advance.