[Phpwm] file upload complete?

David Goodwin david at codepoets.co.uk
Wed Jul 2 15:56:24 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Holmes wrote:
> The following seems to work for us in one of our FTP import routines we
> check the file size with a sleep in the middle
> 


In something we did recently, we just checked to see if the file had
been written to in the last five minutes. Luckily (for us) the file is
also XML so it's fairly easy to validate it and check to see whether
it's complete.

See : http://uk.php.net/manual/en/function.filectime.php


David.

- --
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIa5cR/ISo3RF5V6YRAmVhAJ9brA57xLWSe+p9b87/Om0oeUsVoQCg02Uz
GkCDwqAxnAErFQRCyKyAWrw=
=XONl
-----END PGP SIGNATURE-----



More information about the Phpwm mailing list