אשכול: Emails headers
View Single Post
ישן 12-05-06, 16:54   # 4
בניה
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: נחושה
הודעות: 3,434

בניה לא מחובר  

ב"ה
PHP קוד:
<?php
$content
="------=_Part_27331_28312923.1147443914225
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

lolo

lili

lala

------=_Part_27331_28312923.1147443914225
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

lolo

lili

lala


------=_Part_27331_28312923.1147443914225--
"
;
preg_match_all("#\Content-Disposition: inline(.+?)\------=_Part_#is",$content,$matchs,PREG_PATTERN_ORDER);
print_r($matchs[1]);
?>
דוגמא חיה:
http://bnaya.be/phpfiles/parsemail.php
  Reply With Quote