#25296 [Fbk->Opn]: error on ftp_nlist
| From: | ates at isikun dot edu dot tr | Date: | Mon, 01 Sep 2003 11:42:24 +0000 |
| Subject: | #25296 [Fbk->Opn]: error on ftp_nlist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46989@lists.php.net to get a copy of this message | ||
ID: 25296
User updated by: ates at isikun dot edu dot tr
Reported By: ates at isikun dot edu dot tr
-Status: Feedback
+Status: Open
Bug Type: FTP related
Operating System: win xp
-PHP Version: 4.3.3
+PHP Version: 4.3.4-dev
New Comment:
same problem continues
look at url = http://webgroup.isikun.edu.tr/arge/ftp/ftp_connect.php
Previous Comments:
------------------------------------------------------------------------
[2003-08-31 16:09:38] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-08-28 10:44:41] ates at isikun dot edu dot tr
look at url = http://webgroup.isikun.edu.tr/arge/ftp/ftp_connect.php
and the basic code to show you the error :
(file is /tosun.txt)
//here code starts
$ftp_server2 = "webgroup.isikun.edu.tr";
$ftp_user_name = "ates";
$ftp_user_pass = "*****";
$conn = ftp_connect($ftp_server2,5000);
ftp_login($conn, $ftp_user_name, $ftp_user_pass);
$nlist = (ftp_nlist($conn, "/tosun.txt"));
$rawlist = ftp_rawlist($conn, "/tosun.txt");
echo "nlist=>";
print_r($nlist);
echo "<br>rawlist=>";
print_r($rawlist);
ftp_close($conn);
------------------------------------------------------------------------
[2003-08-28 10:06:58] pollita@php.net
Cannot reproduce.
Based on the description you provided I get the results which are
expected from the documentation of ftp_nlist().
Please provide a simple and COMPLETE script which reproduces this
error. Obviously nooone expects you to give out a password to your own
server, but you could try to reproduce this on a public ftp server.
------------------------------------------------------------------------
[2003-08-28 09:53:16] ates at isikun dot edu dot tr
Description:
------------
when i use $array=ftp_nlist(exact file name) // for example
ftp_nlist(/http/fopen.php) it returns /http/fopen.php/fopen.php as 1st
element of array so it must return /http/fopen.php ..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25296&edit=1