a718 Posted May 23, 2007 Share Posted May 23, 2007 I receive a daily email attachment, which is a zipped .csv file. I am trying to write a script that is able to read this csv file. Currently I am using the IMAP function and I am able to access my mailbox and get the name of the attachment, but this is where I've hit a stopping point. Is it possible to save the attachment to my local computer? From there I could use the zip_read function. I have tried file_put_contents, but that doesn't seem to work because of the .zip format. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/52664-saving-email-attachments-to-local-computer/ Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 what if you tried to copy it? copy($oldname,'c:\asljdf.cvs') Link to comment https://forums.phpfreaks.com/topic/52664-saving-email-attachments-to-local-computer/#findComment-259998 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.