Forum Moderators: coopster

Message Too Old, No Replies

php ftp_login() error

         

trimast

10:55 am on Jul 28, 2005 (gmt 0)

10+ Year Member



Hi all,

I set up a system a few weeks ago which allowed a directory to be created and populated upon an activation link been clicked.

This has worked fine for the past two weeks, yesterday somebody went to try it and got the following error message:

Warning: ftp_login(): Authentication failed ....

I've not touched the php code and nobody else has ftp access to update / amend or mess with the code, so am at a slight loss as to the cause.

Also no passwords / usernames have been altered i checked that, and as far as i am aware there hasn't been a upgrade to the php version my host currently runs.

The code that is causing the problem is

$login_result = ftp_login($conn_id, username, password);

the $conn_id code:

$conn_id = ftp_connect(ftp.mysite.net);

if anybody has any ideas then please let me know, but like i said all the above was working up till yesterday.

Thanks in advance,

Rob

dreamcatcher

12:28 pm on Jul 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Authentication failure sounds like an incorrect username and/or password.

Have you changed the login details?

dc

trimast

12:34 pm on Jul 28, 2005 (gmt 0)

10+ Year Member



Hi,

Nope nothing has changed. I had the same thought, but know i've not changed the details, and have checked the ftp details and they are still the same.

Thats whats givin me the headache :(

Thanks

Rob