PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I get the error:
Adobe reader could not open 'xxx.pdf' because it is either not a supported fiel type orbecause the file has been damaged(for example, it was sent as an email attachment and wasn't correctly decoded)
Well, in one section you are assigning $fpart from the $_FILES variable, indicating that you are working with an uploaded file. However on the file_get_contents() function, you are trying to read the file from a specific location, which on most default server setups, would not be where PHP would keep the uploaded file.
Do you have code somewhere before this that takes the uploaded file and moves it to the Events folder?? One way to tell would be to look at the raw e-mail you are sending to make sure, does it appear to have a lot of data in the section where you expect the file to be?
Also one thing to note, you are saying the file type is application/zip, instead of pdf? (not sure if that would make a difference)