Hi,
I try to save a copy of same information that is sent to Paypal in a plain text file.
I use ppCheckout.sendAndLoad("save.php", ppCheckout, "POST"); in FLA and following php script:<?php
$t=time(); $t=date("D, d M Y H:i:s",$t);
$tm=time(); $tm=date("Ymd_His",$tm);
//Capture data from $_POST array
$itemnumber = $_POST['sspCartItem.data.id'];
$itemname = $_POST['sspCartItem.data.description'];
$amount = $_POST['sspCartItem.data.price'];
$quantity = $_POST['sspCartItem.data.quantity'];
//Make one big string in a format Flash understand
$toSave = "Date: ".$t." | Item_Number: ".itemnumber." | Item_Name: ".$itemname." | Amount: ".$amount." | Quantity: ".$quantity. "\r\n";
//Open a file in write mode
$fp = fopen($tm.".txt", "a+");
fwrite($fp, $toSave);
//if(fwrite($fp, $toSave)) echo "writing=Ok";
//else echo "writing=Error";
fclose($fp);
?>
For some reason no information is written although it traces in output window in Flash.
Do you have any suggestion?
Thanks,
Igor
OK. I got this part.