#25296 [Opn->Fbk]: error on ftp_nlist

From: Date: Sun, 31 Aug 2003 21:09:38 +0000
Subject: #25296 [Opn->Fbk]: error on ftp_nlist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46969@lists.php.net to get a copy of this message
ID: 25296 Updated by: iliaa@php.net Reported By: ates at isikun dot edu dot tr -Status: Open +Status: Feedback Bug Type: FTP related Operating System: win xp PHP Version: 4.3.3 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#46969) next »