How can PHP limits for file uploads be adjusted, and what are the potential issues that may arise when modifying these settings?

To adjust PHP limits for file uploads, you can modify the php.ini file by changing the values of the following directives: upload_max_filesize, post_max_size, and max_file_uploads. Be cautious when increasing these limits as it may impact server performance and security. It's important to find a balance between allowing larger file uploads and maintaining server stability.

// Adjust PHP limits for file uploads
ini_set('upload_max_filesize', '20M');
ini_set('post_max_size', '25M');
ini_set('max_file_uploads', 5);