[Phpwm] auto reading Zip files
Dave Holmes
Dave at neteffekt.co.uk
Thu Nov 9 13:27:16 GMT 2006
Alan....
Firstly this depends on the FTP server some of them use a different
extension such as .filepart I know SFTP under SSH certainly does, not sure
about ProftpD.
Either way can you upload the file say myfile.uploading then use the rename
FTP command to change the extenstion so it is picked up by your server
application
Dave
-----Original Message-----
From: phpwm-bounces at mailman.lug.org.uk
[mailto:phpwm-bounces at mailman.lug.org.uk] On Behalf Of alan dunn
Sent: 09 November 2006 13:03
To: phpwm
Subject: [Phpwm] auto reading Zip files
We have laptops(windoze) around the country ftp'ing zip files in to our
server. Then we are planning to use a cron job to open the files and read
the contents. If the file is OK no problem. If the zip file is corrupted
then ziparchive::open will give us an error message and we can react
accordingly and move the archive to a 'review these later' folder.
But is it possible to differentiate between a corrupt file which has
finished downloading and a file which is in the process of being downloaded
when our cron job comes along looking for something to do?
Thanks for any thoughts, alan dunn
_______________________________________________
Phpwm mailing list
Phpwm at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/phpwm
More information about the Phpwm
mailing list