I have tried to connect to ftp server it windows. It works well with. But when I used the same with red hat i was unable to connect to server.
ftp service is already running in redhat.
$con_id=ftp_connect("192.168.0.8")or die("Couldn't connect to"); ;
$login_result = ftp_login($con_id, "newuser", "wampp");
// check connection
if ((!$con_id) || (!$login_result)) {
echo "connection has failed!";
} else {
echo "Connected to $ftp_server, for user ".".....";
}