#19104 [Opn->Fbk]: ftp_get hangs with small files
ID: 19104
Updated by: sniper@php.net
Reported By: frederick.amorison@minfin.fed.be
-Status: Open
+Status: Feedback
Bug Type: FTP related
Operating System: Linux Debian Woody
PHP Version: 4.1.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
This should be fixed already..
Previous Comments:
------------------------------------------------------------------------
[2002-08-26 07:50:43] frederick.amorison@minfin.fed.be
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!
------------------------------------------------------------------------
[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
Thread (4 messages)