How can I check captcha with PHP?

PHP, Connect to FTP and check for file.?

  • I want to be able to make a php file that can get on the FTP server, and check to see if a file already exists. Thanks.

  • Answer:

    <?php // set up basic connection $conn_id = ftp_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // get contents of the current directory $contents = ftp_nlist($conn_id, "."); // Find the file in Array $contents //The function checkFileExist() will compare each item in the Array with $targetFileName checkFileExist($contents , $targetFileName); ?>

UpThe0nu... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.