note 39610 added to function.ftp-close

From: Date: Wed, 04 Feb 2004 14:22:18 +0000
Subject: note 39610 added to function.ftp-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-64633@lists.php.net to get a copy of this message
if you want to upload a very large file (~90.0MB), action which lasts several seconds, but the script finishes its execution after a couple of miliseconds, you cannot close the connection with ftp_close(). the script continues to run until the max_execution_time is exceeded. at the end only a fraction of the file will be uploaded. I tested the script several times and all the other ftp-functions seemed to work well. all of these on IIS/6.0, php 4.3.3 <? $con = ftp_connect("ftp_server"); ftp_login($con,"user","pass"); ftp_chdir($con,"target_dir"); ftp_nb_put($con,"test.iso","test.iso",FTP_BINARY); ...... // other operations ...... if (ftp_nb_continue($con) != FTP_FINISHED) ftp_close($con); ?> ---- Manual Page -- http://www.php.net/manual/en/function.ftp-close.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39610 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39610&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39610&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64633) next »