ID: 27857 Updated by: [EMAIL PROTECTED] Reported By: ledge00 at hotmail dot com -Status: Open +Status: Bogus Bug Type: FTP related Operating System: Windows XP PHP Version: 4.3.5 New Comment:
ftp_rawlist() doesn't do any caching of results, it just proxies the results returned from the FTP server. Perhaps your FTP server (or the "webshare" software itself) performs some type of caching to avoid repeatedly stating the same files. Previous Comments: ------------------------------------------------------------------------ [2004-04-03 22:30:21] ledge00 at hotmail dot com Description: ------------ When using "@ftp_rawlist" to retrieve a listing of files on my ftp server, files/directories recently created are not listed. Also, for a file/directory that is listed, if I delete it, it is still returned by "@ftp_rawlist". If have tried adjusting all "cache" parameters in php.ini, but the problem still recurs. the problem seems to disappear after 3 minutes or so after the directory/file is created. The code I've been trying can be found here: http://www.fatsquirrel.org/software/webshare/ I'm using Apache 2.0.49 with SSL and PHP 4.3.5. This problem also seems to occur in PHP Debuggers also, so I don't think it's related to Apache. Thank you for your help. Reproduce code: --------------- The code can be found here: http://www.fatsquirrel.org/software/webshare/ The function that causes the problem is: function ls($dir) { return(@ftp_rawlist($this->cid,$dir)); } Expected result: ---------------- All files/directories report by ftp_rawlistshould match the files as reported by explorer. Actual result: -------------- new directories created by explorer, are not shown when using ftp_rawlist. After 3 minutes or so, the new directory/file is shown. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27857&edit=1
