php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7232 Is it a ftp bug
Submitted: 2000-10-15 22:02 UTC Modified: 2000-12-30 20:22 UTC
From: hxr2000 at 21cn dot com Assigned:
Status: Closed Package: FTP related
PHP Version: 4.0.2 OS: Linux Mandrake release 7.1(Kerne
Private report: No CVE-ID: None
 [2000-10-15 22:02 UTC] hxr2000 at 21cn dot com
Following of the php code:
<?php
set_time_limit(0);
$ftp=ftp_connect("192.168.0.201",21);
if (ftp_login($ftp,"hxr","hxr"))
echo time();
$upload = ftp_get($ftp, "test.vob", "dvd01.vob", FTP_ASCII); 
echo time();
ftp_quit($ftp);
?>
Environment:
1.php4.02+mysql3.22.32+apache1.3.12+Linux Mandrake release 7.1(Kernel:2.2.15-4mdk)
2.the size of dvd01.vob>=1G
Error message:(After about 300 seconds)the page is timeout?Cthe page cannot open.
But the file still being transfered to the php server until the whole file is transfered
to the php server succesfully .How can I solve the problem?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 04:55 UTC] sniper@php.net
With latest CVS I get similar effect of having the 
file transferred even if the page timeouts. But setting
timeout to 0 does work for me..could you try the latest
snapshot from http://snaps.php.net/ to see if it works for you?

And about that 'background' ftp transfer..I don't know if
it could be called bug but a feature? =)

--Jani
 [2000-12-30 20:22 UTC] sniper@php.net
No feedback.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 02 13:01:27 2024 UTC