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 Quote Link to comment 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') Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.