Hey Guyz, do you wanna know what is the recommended upload_max_filesize, post_max_size, and memory_limit?
For me, as a php programmer for more than a year it depends on how much you need it. for example if you are going to upload a filesize of 50MB,then you can set the uploading configuration that would meet your needs.
In default, your uploading configuration is set to these values:
Maximum file size: 2MB
post_max_size: 8MB
memory_limit: 16MB
Meaning, it only allows you to upload 2MB (Maximum file size: 2MB) of file. I also wrote an article before on how to increase your upload_max_filesize, post_max_size, and memory_limit without accessing php.ini, that is incase you don't have access to it.
take note of this:
post_max_size > upload_max_filesize
post_max_size < memory_limit
No comments:
Post a Comment