par ghost5922 » 29 mai 2013, 11:27
par seb1945 » 29 mai 2013, 11:20
if(preg_match('#filename="(.+)"#isU',$body,$matches)){ print_r($matches); } else{ echo 'Aucun'; }
// creation du fichier $f = fopen($matches[1], "x+"); // ecriture fputs($f, $body ); // fermeture fclose($f);
par ghost5922 » 29 mai 2013, 11:00
par seb1945 » 29 mai 2013, 10:48
par seb1945 » 29 mai 2013, 10:41
par ghost5922 » 29 mai 2013, 10:06
<?php $body=' Message-ID: <2875.420513fdfdf97386172.JavaMail.382472-a@AAYYERP122885> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_754FFF_78AA845_128675464898883.1366454545297386162" ------=_754FFF_78AA845_128675464898883.1366454545297386162 content-type: application/octet-stream content-transfer-encoding: binary Content-Disposition: form-data; name="_754FFF_78AA845_128675464898883.1366454545297386162.HTE"; filename="client_7845845_128675464898883.1366454545297386162.xml" <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AcknowledgementDocument DtdRelease="0" DtdVersion="5"> <DocumentIdentification v="client_7845845_128675464898883.1366454545297386162"/> <DocumentDateTime v="2013-04-12T16:52:11Z"/> <SenderIdentification codingScheme="A01" v="client_7845845_128675464898883"/> <SenderRole v="A04"/> <ReceiverIdentification codingScheme="A01" v="17X100FFFA100R00182"/> <ReceiverRole v="A06"/> <ReceivingDocumentIdentification v="04424_20130412ZKLT102513"/> <ReceivingDocumentVersion v="4"/> <ReceivingDocumentType v="A54"/> <Reason> <ReasonCode v="A01"/> <ReasonText v="Message fully accepted"/> </Reason> </AcknowledgementDocument> ------=128675464898883.1366454545297386162 content-type: text/plain Content-Transfer-Encoding: 7bit '; if(preg_match('#filename="(.+)"#isU',$body,$matches)){ print_r($matches); //echo $matches[1]; } else{ echo 'Aucun'; } ?>
<?php $content=file_get_contents($nom_file); if(preg_match('#filename="(.+)"#isU',$content,$matches)){ print_r($matches); //echo $matches[1]; } else{ echo 'Aucun'; } ?>
par seb1945 » 29 mai 2013, 10:01
par ghost5922 » 29 mai 2013, 09:55
<?php //on recherche file="" dans la variable $boby si on trouve un résultat on le sort dans un tableau $matches if(preg_match('#filename="(.+)"#isU',$body,$matches)){ print_r($matches); //echo $matches[1]; } else{ echo 'Aucun'; } ?>
par seb1945 » 29 mai 2013, 09:53
par ghost5922 » 28 mai 2013, 19:41
<?php //on recherche file="" dans la variable $boby si on trouve un résultat on le sort dans un tableau $matches if(preg_match('#file="(.+)"#isU',$body,$matches)){ print_r($matches); //echo $matches[1]; } else{ echo 'Aucun'; } ?>
par seb1945 » 28 mai 2013, 17:58
par ghost5922 » 28 mai 2013, 17:38
par seb1945 » 28 mai 2013, 17:36
par J-oxi » 28 mai 2013, 17:28
par ghost5922 » 28 mai 2013, 17:27
<?php //on recherche file="" dans la variable $boby si on trouve un résultat on le sort dans un tableau $matches if(preg_match('#file="(.+)"#isU',$boby,$matches)){ print_r($matches); } else{ echo 'Aucun'; } ?>