#19104 [Com]: ftp_get hangs with small files

From: Date: Mon, 26 Aug 2002 11:50:43 +0000
Subject: #19104 [Com]: ftp_get hangs with small files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17837@lists.php.net to get a copy of this message
ID: 19104 Comment by: frederick.amorison@minfin.fed.be Reported By: frederick.amorison@minfin.fed.be Status: Open Bug Type: FTP related Operating System: Linux Debian Woody PHP Version: 4.1.2 New Comment: The same test with ftp_fget: The "output" file is writen after 90 secs (but this time there is something written). PS: My "fopen" and "fclose" are correct! Previous Comments: ------------------------------------------------------------------------ [2002-08-26 06:42:30] frederick.amorison@minfin.fed.be Hello, I have th following problem with ftp_get function. When I try to download small files (198 bytes or less), nothing seems to happens. After 90 secs I receive a Warning message (Warning: ftp_get: in /var/www/updater/toolbar.php on line 32 ). My ftp server (proftpd) says transfer is Ok. Here is a part of this script : (line 32 is the one with ftp_get) if ($ftp_conn=ftp_connect($RemoteServer)){ if (ftp_login($ftp_conn,$login,$passwd)){ if ($afiles=ftp_get($ftp_conn,$file,$file,FTP_BINARY)){ } else { $res.="$msgDownloadFailed";} } else { $res.="$msgAutenticationFailed";} }else { $res.="$msgConnectionFailed";} ftp_quit($ftp_conn); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19104&edit=1

« previous php.bugs (#17837) next »