What potential issues can arise from setting extremely high upload and POST limits in PHP?
Setting extremely high upload and POST limits in PHP can potentially lead to increased server resource consumption and vulnerability to denial-of-service attacks. To mitigate these risks, it is recommended to set reasonable limits that meet the requirements of your application without unnecessarily straining the server.
// Set reasonable limits for upload and POST data
ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');