Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#25641 [Fbk->NoF]: ftp_rawlist long list retrive fail after 60 sec
ID: 25641
Updated by: [email]sniper@php.net[/email]
Reported By: sentomas at hotmail dot com
-Status: Feedback
+Status: No Feedback
Bug Type: FTP related
Operating System: FreeBSD
PHP Version: 4.3.3
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-09-24 13:32:54] [email]pollita@php.net[/email]
Your use of ftp_rawlist is incorrect. The second argument must contain
a path (otherwise a -- technicly -- invalid command is sent to the
server).
Try again with ftp_rawlist($conn_if, "-lR /");
(Passing -lR as arguments, while undocumented, will at least not result
in invalid behavior)
I'm not saying this is necessarily the problem (in fact it's probably
not), but I'd like to rule it out.
In the mean time, are you querying a public FTP server? If so which
one? (I'd like to reproduce the precise circumstances). If it's a
private FTP, it would help to at least know what FTP daemon is running
(i.e.: ProFTPd, IIS, etc...)
------------------------------------------------------------------------
[2003-09-24 06:22:11] [email]sniper@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]
------------------------------------------------------------------------
[2003-09-24 05:42:17] sentomas at hotmail dot com
Description:
------------
if the ftp list so long that can retrive in 60sec, the ftp_rawlist()
automaticly fail.
I re-set FTP timeout and default_socket timeout and of cause use
commandline mode , but it didnt seems to work.
Reproduce code:
---------------
//-lR option in order to make ftp server reply whole dir list, which
might be very very long, so its take time more than 60 sec.
$dirlist = ftp_rawlist($conn_id, "-lR");
if ($dirlist === false){
//defintely fail whatever you do after 60sec
//commandline mode
return "fail";
}
Expected result:
----------------
might be some kind of "default_socket_timeout" limit in inter-core?
because i saw the ftp.c will write to the list tmpfile first then
output to array.
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=25641&edit=1[/url]
sniper@php.net Guest
-
grep argument list too long...how to get around it?
On Thu, Oct 09, 2003 at 12:21:57PM -0400, Kevin Old wrote: It's a system limit (not specific to grep) based on the size-in-bytes of the argument... -
#25641 [Opn->Fbk]: ftp_rawlist long list retrive fail after 60 sec
ID: 25641 Updated by: sniper@php.net Reported By: sentomas at hotmail dot com -Status: Open +Status: ... -
#25641 [NEW]: ftp_rawlist long list retrive fail after 60 sec
From: sentomas at hotmail dot com Operating system: FreeBSD PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ... -
#25625 [NEW]: [chm] bug on ref.ftp.html | ftp_*list cant retrive ftp list on some ftpd
From: sentomas at hotmail dot com Operating system: freebad PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ... -
long list of tips (alternatives)...
There is HTML Xtra at http://www.mcmm.com/english/pages/xtras/xtrase.html that might solve your problems. It should be possible to 'link to...



Reply With Quote

