|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-10-06 07:54 UTC] websupport at osite dot de
Description: ------------ ftp_size does not work on large files > 2gb event not on 64bit systems can be fixed with the following patch Patchesftp_size_large_file (last revision 2011-10-06 07:55 UTC by websupport at osite dot de)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 06:00:01 2025 UTC |
Stumbled across this issue just thought I would toss in my solution. Just queries the ftp server for the size and converts the resulting string to a double rather than an int. $size = 0; $result = ftp_raw($conn_id, "SIZE " . <file path>); $parts = explode(" ", $result[0]); if($parts[0] === "213") { $size = doubleval($parts[1]); }