New Zenner
- Join Date:
- Oct 2016
- Location:
- Mississippi
- Posts:
- 8
- Plugin Contributions:
- 0
Post #1 by larrylmiller
I am looking for a way to log TaxCloud transactions.
I tried multiple times to log date and time with no luck.
I added this to several locations in func.taxcloud.php. No errors, no output.
$iplogfile = 'logs/taxcloud.html';
$ipaddress = $_SERVER['REMOTE_ADDR'];
$webpage = $_SERVER['SCRIPT_NAME'];
$timestamp = date('d/m/Y h:i:s');
$browser = $_SERVER['HTTP_USER_AGENT'];
$fp = fopen($iplogfile, 'a+');
chmod($iplogfile, 0777);
fwrite($fp, '['.$timestamp.']: '.$ipaddress.' '.$webpage.' '.$browser. "\n<br><br>");
fclose($fp);
Am I on the correct path?
Thanks
URL: https://shop.mcrsafety.com
ZC version: 1.5.5f
Plugins: Email Archive Manager
PHP version: 5.6.39