Error with connecting ftp through php -


I am trying to connect to my server using php scripts to upload some files ...

but it is not connected ...

I do not know what the error is ...

I'm sure FTP is enabled, Php_info () / P>

What could be the error ...

   

You may need to turn on sleep mode:

< Pre> ftp_pasv ($ conn_id, true);

Why do you double login after your ftp_login

ps: ? Type

  $ login_result = ftp_login ($ conn_id, $ ftp_user_name, $ ftp_user_pass); If instead of ($ login_result) { 

  $ login_result = ftp_login ($ conn_id, $ ftp_user_name, $ ftp_user_pass); If ($ login_result = ftp_login ($ conn_id, $ ftp_user_name, $ ftp_user_pass)) { 

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -