PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and this gives me 1 which suggests that the limit has been exceeded (when I deliberately upload 3MB file) in the .ini file which I have no access to so I’m wondering why I can’t show an error when I test the file being uploaded.
When I upload anything under 2MB the file uploads ok so my script is ok in that area.
When the user tries to upload the file, look in $_FILES['fupload']['error']. If that value is equal to UPLOAD_ERR_INI_SIZE, the problem was the file was too big. PHP does the size checking for you - no need to duplicate functionality.