RE: [PHP] File complete check (FTP)
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... -Original Message- From: Jake Gardner [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 1:05 AM To: Johannes Tyra Subject: Re: [PHP] File complete check (FTP) The simplest (albeit a dirtier) method is to just compare the filesize of the remote file to the local file. http://us2.php.net/filesize On 9/22/05, Johannes Tyra [EMAIL PROTECTED] wrote: Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the to last bytes (ffd9), but these method is not save. Anybody know how it works?? -- Mit freundlichem Gruß, | Johannes Tyra | --- | BrainData - InterNet Services | --- | Tel: +49.209.8181788 | Fax: +49.209.8181789 | --- | www.BrainData.de | mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File complete check (FTP)
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File complete check (FTP)
How about check file size? Crom - Original Message - From: Johannes Tyra [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, September 22, 2005 5:04 PM Subject: [PHP] File complete check (FTP) Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the to last bytes (ffd9), but these method is not save. Anybody know how it works?? -- Mit freundlichem Gruß, | Johannes Tyra | --- | BrainData - InterNet Services | --- | Tel: +49.209.8181788 | Fax: +49.209.8181789 | --- | www.BrainData.de | mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php