How can file upload limits and execution time limits be adjusted in PHP for web FTP applications?

To adjust file upload limits and execution time limits in PHP for web FTP applications, you can modify the php.ini file or use PHP code to set these limits dynamically. By changing the values of upload_max_filesize, post_max_size, and max_execution_time, you can adjust the limits as needed.

// Set file upload limits and execution time limits
ini_set('upload_max_filesize', '20M');
ini_set('post_max_size', '25M');
ini_set('max_execution_time', 300);