Good morning, friends. I've struggled and googled and I can't seem to find an answer. If it's been answered on here already and I missed it, please feel free to direct me to what I missed.
I have the following bit of PHP code. It works fine when I run it on my Mac (and the non-Windows machines of some friends), but when I run it on Windows (where it's going to live here at work), it writes each line to the text file twice. PHP here at work is 5.3.6 running on IIS 6.
Any help is greatly appreciated.
<?php
$fltSupervision = trim(htmlentities($_POST["txtSupervision"]));
$fltDrugTestUA = trim(htmlentities($_POST["txtDrugTestUA"]));
$fltAlcoholSensor = trim(htmlentities($_POST["txtAlcoholSensor"]));
$fltTotal = trim(htmlentities($_POST["txtTotal"]));
$fltSurcharge = trim(htmlentities($_POST["txtSurcharge"]));
$strTransaction = $fltSupervision . "\t" . $fltDrugTestUA . "\t" . $fltAlcoholSensor . "\t" . $fltSurcharge . "\t" . $fltTotal . PHP_EOL;
echo $strTransaction;
$file = 'fees.txt';
file_put_contents($file, $strTransaction, FILE_APPEND);
?>
Jeremy