[Phpwm] file upload complete?

Alex Mace alex at hollytree.co.uk
Wed Jul 2 15:46:54 BST 2008

I haven't personally tried using feof in that situation, so I couldn't  
tell you for sure, but I don't think that it would work.

Perhaps checking the modification time to see if it's changed in the  
last (say) 5 minutes and ignoring it if it has until that time has  
passed would be a better solution? Or use an FTP server that you can  
script to move completed uploads to another location?


On 2 Jul 2008, at 15:40, alan dunn wrote:

> We have zip files being uploaded to an FTP folder from various  
> laptops. We then plan to open those files using a cron job. My  
> concern is that we shouldn't try to open and process a file before  
> upload is complete.
> Is it OK to just use  feof = true going to do this or do we need to  
> be more thorough?
> Are there methods of monitoring a file to see when upload is  
> complete and then switching on the next stage of the process?
> thanks, alan dunn
> -- 
> This document originates from within Dunns Imaging Group Limited.
> This message, together with any associated files, is intended only  
> for the use of the individual or entity to which it is addressed and  
> may contain information that is confidential, subject to copyright  
> or constitutes a trade secret. If you are not the intended recipient  
> of this communication you are hereby notified that any  
> dissemination, copying or distribution of this message, or of any  
> files associated with this message, is strictly prohibited.
> If you have received this message in error, please notify us at once.
> Dunns Imaging Group Ltd.
> Registered Office: Chester Road Cradley Heath West Midlands B64 6AA.
> Tel: 01384 564770
> Registered in England 598527.
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm

More information about the Phpwm mailing list