1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

FTP login problem

Discussion in 'PHP' started by dineshsingh1984, Apr 7, 2015.

  1. #1
    I am trying to connect ftp server with php script
    like this :

    $ftp_server = 'greenscm.in';
    $ftp_conn = ftp_connect($ftp_server) or die("Could not connect to $ftp_server");
    $login = ftp_login($ftp_conn, 'greenscm', 'green@#12') or die("Could not login to $ftp_server");


    In this script ftp is connect but ftp not login and throw warning :
    Warning: ftp_login(): Sorry, cleartext sessions are not accepted on this server. in D:\new_xampp\htdocs\holisol_2611\img.php on line 23
    Could not login to greenscm.in


    how can resolve this problem......
     
    dineshsingh1984, Apr 7, 2015 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    Have you realised that you just posted your username and password publicly on the internet? Wonder how long it will take for someone to take over your hosting account.
     
    stephan2307, Apr 8, 2015 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    PoPSiCLe, Apr 8, 2015 IP
  4. dineshsingh1984

    dineshsingh1984 Active Member

    Messages:
    154
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    Yes i'm realised, So it's not a actual detail.
     
    dineshsingh1984, Apr 8, 2015 IP
  5. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #5
    Need to figure out if you should be connecting via sftp or ftps. In the case of the former, it's quite a bit more complicated. Personally I use phpseclib for SFTP connections but there are other ways of accomplishing it listed in the stackoverflow link.
     
    jestep, Apr 13, 2015 IP