What is the correct format for specifying the FTP server IP or URL in the PHP script?

To specify the FTP server IP or URL in a PHP script, you can use the ftp_connect function. This function establishes a connection to an FTP server. You need to pass the FTP server IP or URL as the parameter to the ftp_connect function. Make sure to include the correct protocol (ftp://) before the IP or URL.

// Specify the FTP server IP or URL
$ftp_server = 'ftp://123.456.789.0';

// Connect to the FTP server
$conn_id = ftp_connect($ftp_server);