html marking

I see the following code in one of the utilities I would like to use.  I do not understand the
--PHP-mixed- marking. lookd like it should print.  I see places with different text but starting with a -- and ending with a -.  Can you explain this or point me to a place where it is explained.
It's used twice in this snippet.

--PHP-mixed-<?php echo $random_hash; ?>  
      Content-Type: multipart/alternative; boundary="<?php echo $random_hash; ?>";
      
      --PHP-mixed-<?php echo $random_hash; ?>
artwilkesAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
This:

--PHP-alt-<?php echo $random_hash; ?>

is making a boundary marker in the email.  Boundary markers are put between different MIME types and embedded images so that email clients can figure out what to do.  This http://mailformat.dan.info/headers/mime.html may explain it better.  The first important part is that the boundary start at the first column on a line with '--' as the first two characters.  The second thing is that they should be 'unique'.
0
 
artwilkesAuthor Commented:
I have a slightly different problem, than the one you pointed me to.
the --PHP-mixed- syntax is outside ofthe PHP markers. hence It can not be a php comment, can it?
If you look at the third example at the following reference, emailing an attachment, you will see this command, comment or market is prevelant in the code.

http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php

Thanks for the effort.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
user_nCommented:
it looks like that  --PHP-mixed-  is pointing where is the php code. The code looks like a multipart http request or http response http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html

--PHP-mixed-<?php echo $random_hash; ?>  
      Content-Type: multipart/alternative; boundary="<?php echo $random_hash; ?>";
     
      --PHP-mixed-<?php echo $random_hash; ?>
0
 
artwilkesAuthor Commented:
That's two for two for DaveBaldwin, one yesterday and one today, and the reference was great.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.