Voici mon code
<?php
echo 'Hello Vous etes sur la page Upload.php'."<br />";
$corp = '';
$fh = @fopen('php://upload', 'r');
if ($fh)
{
while (!feof($fh))
{
$s = fread($fh, 1024);
if (is_string($s))
{
$corp .= $s;
}
}
fclose($fh);
}
print("PHP Input Stream\n$corp\n\n");
$body = http_get_request_body();
print("http_get_request_body()\n$body\n\n");
$date = date("-d-m-Y");
$heure = date("-H\hi");
$nom_file = "fichier$date$heure.txt";
// creation du fichier
$f = fopen($nom_file, "x+");
// ecriture
fputs($f, $body );
// fermeture
fclose($f);
?>
et le resultat qui biensur le resultat change pour l'instant le nom du fichier est : fichierdataheur.txt et le probleme c'est que le veritable nom du fichier que je dois lui donner voir en rouge est dedant
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