Hi,
I'm having problems coding a response page for a EPDQ shopping cart.
the code I have is blow but it just returns a blank page.
Can anyone see anything obvious why this dosn't work?
PHP Code:
<?php
if (!strcmp(getenv("REQUEST_METHOD"),"POST")){
$path="/var/logs"; #set your logfile directory path here
$timestamp=date("d-m-y--H-i-s");
$FILE=fopen("$path$timestamp-$oid.txt","a");
fwrite($FILE,"OrderID - $oid\n");
fwrite($FILE,"Transaction Status - $transactionstatus\n");
fwrite($FILE,"Total - $total\n");
fwrite($FILE,"ClientID - $clientid\n");
fwrite($FILE,"Transaction Time Stamp - $datetime\n");
fclose($FILE);
}
?>
__________________
I Just a test to see what happens... Please login or register to view this content. Registration is FREE
"Let us be thankful for the fools. But for them the rest of us could not succeed..."
|