Q. How much is the maximum file size upload for PHP scripts?

Ans. We have set a limit of 10 MB on the maximum file size upload in the php.ini configuration file. Directives are used to configure the PHP engine. They are placed in PHP’s configuration file php.ini. There are a number of directives that are related to file upload from which following are the two important ones mentioned –

  • file_uploads – It specifies whether file upload is allowed in PHP.
  • upload_max_filesize – It specifies the maximum file size that the PHP engine will accept.