You have to create (or rather have your php script create) a multi-part email. I will email you a rather crude example I use in one of my applications. There is RFC describing the whole process here:
<http://www.oac.uci.edu/indiv/ehood/MIME/MIME.html>
For binary attachements you will also need to use the base64_encode() function.