What are the limitations of using passive mode in FTP connections with PHP?

When using passive mode in FTP connections with PHP, a common limitation is the inability to establish a connection through certain firewalls or network configurations. To solve this issue, you can force the FTP connection to use active mode instead of passive mode.

// Set FTP connection to use active mode
ftp_pasv($ftp_conn, false);