ftp_connect()不能用于生产

Localhost:

In php application ftp_connect("000.000.0.00") is working fine, means when I am trying to browse a file from local system and uploading this file on FTPit is working.

Production Server: When I am deploying my PHP application on production and trying to get FTP connection by ftp_connect("000.000.0.00") is it not getting connected. it is returning FALSE. please tell me how do I connect on FTP to upload my files through my PHP application.

<?php
$ftp_server="000.000.0.00";
$ftp_user_name="myftpuser";
$ftp_user_pass="myftppwd";

$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if ((!$conn_id) || (!$login_result))
{
    echo "Connection Failed.";
}
else
{
    echo "Connected.";
}
?>

You need to replace 000.000.0.00 with your ftp server.

Refer here: ftp_connect()