Re: File complete check (FTP)
| From: | Jasper Bryant-Greene | Date: | Fri, 23 Sep 2005 07:41:18 +0000 |
| Subject: | Re: File complete check (FTP) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223061@lists.php.net to get a copy of this message | ||
Johannes Tyra wrote:
I don't know the local filezize. I have only the remote ftp file, uploaded on the server... PHP runs on the server, so the uploaded file remote ftp file (from the ftp user) is the file to check...But you can run filesize() on the file before you upload it to the FTP server, and then filesize() on it afterwards... both from the server... if the two are equal then the file is complete. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/