|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-13 13:27 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
Description: ------------ The file size is 2G. Reproduce code: --------------- $t=ftp_connect($ftp_server); Echo "Logging...\n"; $ft=ftp_login($t,$ftp_user,$ftp_pass); if (( !$t) || (!$ft)) { echo "La connessione FTP ? fallita a $ftp_server per l'utente $ftp_user\n"; die; } else echo "Connesso a $ftp_server con utente $ftp_user\n"; ftp_chdir($t,"/$pathremote/bk".$act); echo "/$pathremote/bk".$act."\n"; ftp_mkdir($t,"$name"); ftp_chdir($t,"$name"); if ($dir = @opendir("../ftp")) { echo "Transfer $dir\n"; while ( ($file=readdir($dir))!==false ) { if (!is_file("$path/$file") ) continue; $trans++; if (!ftp_put($t,$file,"$path/$file",FTP_BINARY)) echo "\nErrore put ftp file: $path/$file to /$pathremote/bk$act/$name/\n\n"; // die("\nErrore ftp!\n\n"); else { echo "Puting file: $path/$file to /$pathremote/bk$act/$name/\n"; exec("rm -f $path/$file"); } } closedir($dir); }