What are the advantages and disadvantages of using set_time_limit() to increase the script execution time in PHP?

When a PHP script reaches the maximum execution time limit set in the php.ini file, it will be terminated. To increase the script execution time, you can use the set_time_limit() function in PHP. This function allows you to specify the maximum amount of time (in seconds) that a script is allowed to run. However, it's important to note that increasing the script execution time may lead to performance issues and potential security risks if not managed properly.

// Increase the script execution time to 60 seconds
set_time_limit(60);