Hey guys, first of all, thx for trying to help.
Here goes...
$output = $addlist["id"] . "\t" . $addlist["quantity"] . "\t" . $addlist["refname"] . "\t" . $addlist["description"] . "\t" . $addlist["price"] . "\n";
$fp = fopen("filename.php","a");
fwrite($fp,$output);
fclose($fp);
Should write $output at the end of filename.php
Sounds simple right? That's what I thought, but for some reason, it does not write to the file!!!
The filename.php has read & write access on it.
I did a
print $output;
and it's correct.
fwrite returns the number of bytes written.
Also shows no PHP errors! I am absolutely baffled because it sounds to me like it finished executing the command correctly but someone isn't actually writing anything even though it thinks it is.
Thanks again for the help.