We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,970 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

ftp connection failed in redhat

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 ".".....";
   }
2
Contributors
1
Reply
1 Hour
Discussion Span
11 Months Ago
Last Updated
2
Views
divyakrishnan
Posting Whiz in Training
235 posts since May 2010
Reputation Points: 30
Solved Threads: 24
Skill Endorsements: 1

Is it that the FTP server is running on RedHat Linux?

Have you tried connecting with an ordinary FTP client to test whether user exists and the password is set OK? Do you get a warning form PHP (frp_login should issue a warning if returns false).

broj1
Nearly a Posting Virtuoso
1,211 posts since Jan 2011
Reputation Points: 167
Solved Threads: 164
Skill Endorsements: 13

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0570 seconds using 2.68MB