Howdy... 😉
I think this is simple concatenation question...
This is the script...
<?php
$FileName = "./Data.log";
$FilePointer = fopen ($FileName, "a+");
$nday = `date +%D`;
$ntime = `date +%r`;
$var1 = "test string 1";
$var2 = "test string 2";
$output = "$nday :: $ntime :: $var1 :: $var2\n";
fwrite ($FilePointer, $output);
fclose ($FilePointer);
?>
and the output is like this...
09/20/03
:: 09:25:24 AM
:: test string 1 :: test string 2
But I want this to be like this...
09/20/03 :: 09:25:24 AM :: test string 1 :: test string 2
Can somebody tell me what I am missing here??? 😕
Thank you very much... 😉