note 105475 added to function.ftp-nlist
| From: | shekharcs84 at gmail dot com | Date: | Sun, 21 Aug 2011 02:37:16 +0000 |
| Subject: | note 105475 added to function.ftp-nlist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182618@lists.php.net to get a copy of this message | ||
I am able to connect ftp/sftp accounts of my web server using WINSCP, but when I am trying using php
code getting below error:
my code is : -
// set up basic connection
$conn_id = ftp_connect("webserver IP");
// login with username and password
echo $login_result = ftp_login($conn_id, "username", "password");
echo "kk".$pasvret = ftp_pasv($conn_id,TRUE);
echo "lll";
// get contents of the current directory
echo $contents = ftp_nlist($conn_id, ".");
// output $contents
print_r($contents);
Warning: ftp_nlist() [function.ftp-nlist]: php_connect_nonb() failed: No such file or directory (2)
in C:\wamp\www\FTP\ftp.php on line 11
Call Stack
# Time Memory Function Location
1 0.0008 674144 {main}( ) ..\ftp.php:0
2 1.4960 683368 ftp_nlist ( ) ..\ftp.php:11
----
Server IP: 202.65.157.132
Probable Submitter: 14.98.187.36
----
Manual Page -- http://www.php.net/manual/en/function.ftp-nlist.php
Edit -- https://master.php.net/note/edit/105475
Del: integrated -- https://master.php.net/note/delete/105475/integrated
Del: useless -- https://master.php.net/note/delete/105475/useless
Del: bad code -- https://master.php.net/note/delete/105475/bad+code
Del: spam -- https://master.php.net/note/delete/105475/spam
Del: non-english -- https://master.php.net/note/delete/105475/non-english
Del: in docs -- https://master.php.net/note/delete/105475/in+docs
Del: other reasons-- https://master.php.net/note/delete/105475
Reject -- https://master.php.net/note/reject/105475
Search -- https://master.php.net/manage/user-notes.php