note 109138 added to function.ftp-size
| From: | gerben at gerbs dot net | Date: | Fri, 22 Jun 2012 18:17:30 +0000 |
| Subject: | note 109138 added to function.ftp-size | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188756@lists.php.net to get a copy of this message | ||
To overcome the 2 GB limitation, the ftp_raw solution below is probably the nicest. You can also
perform this command using regular FTP commands:
<?php
$response = ftp_raw($ftpConnection, "SIZE $filename");
$filesize = floatval(str_replace('213 ', '', $response[0]));
?>
----
Server IP: 91.199.167.223
Probable Submitter: 212.142.33.197
----
Manual Page -- http://www.php.net/manual/en/function.ftp-size.php
Edit -- https://master.php.net/note/edit/109138
Del: integrated -- https://master.php.net/note/delete/109138/integrated
Del: useless -- https://master.php.net/note/delete/109138/useless
Del: bad code -- https://master.php.net/note/delete/109138/bad+code
Del: spam -- https://master.php.net/note/delete/109138/spam
Del: non-english -- https://master.php.net/note/delete/109138/non-english
Del: in docs -- https://master.php.net/note/delete/109138/in+docs
Del: other reasons-- https://master.php.net/note/delete/109138
Reject -- https://master.php.net/note/reject/109138
Search -- https://master.php.net/manage/user-notes.php