|
Hi, sorry it has been a while, been out of town and raising some animals so a bit busy with that and work.
What were the results of the if verifications? I would assume that if it is enabled it will work, otherwise it would tell you it isn't installed or enabled as before. If the functions are returning values, then it is installed/enabled.
I noticed in your code you commented out the deletion of the email messages. I assume you are checking them through a regular email client and are able to download the attachments to your computer and extract them normally? With that in mind, maybe it is a compatibility issue with the zip archives themselves. I don't know how updated the phpzip modules are, but formats do change and it is possible it can't correctly unzip the archives. That is a longshot there, but just another thought. The .zip format is very stable in format so I don't think that will be the issue honestly.
If you know how to code it, I would recommend starting simple first. Instead of extracting the zip file, go straight to copying the zip attachment to the directory where you are trying to extract it to You may also consider extracting it in that directory AFTER you have copied that zip to the target directory for the files. This will help to identify if there is a problem in the actual creation/copying process of the files. If the attachments can be copied to their target directory and are non-corrupt, then the issue is indeed somewhere within the phpzip module. Report back your results and I will assist further.
__________________
Patrick
Warnings: The program(s) might crash unexpectedly or behave otherwise strangely. (But of course, so do many commercial programs on Windows.) --www.gimp.org
|