What are the potential issues with uploading files larger than 1GB using PHP?

Uploading files larger than 1GB using PHP can lead to memory exhaustion and execution time limits being exceeded, causing the script to fail. To solve this issue, you can increase the PHP settings for `upload_max_filesize`, `post_max_size`, `max_execution_time`, and `memory_limit` in the php.ini file or within the PHP script using `ini_set()`.

// Increase PHP settings for uploading large files
ini_set('upload_max_filesize', '2G');
ini_set('post_max_size', '2G');
ini_set('max_execution_time', 300); // 5 minutes
ini_set('memory_limit', '512M');