Guest_imported
New member
- Jan 1, 1970
- 0
Hi .
Im only new to php..Does anyone know how to send multiple parameters to a file for appending. Say if i wanted to write four variables like this..its giving me the following error..'Wrong parameter count for fwrite()'..
$month = date("F"
$day = date("d"
$year = date("y"
$FILE = fopen("stats.txt","a"
fwrite($FILE,$day,$month,$year,$number);
fclose($FILE);
also ..how do i start a line every time the thing writes to the file..like using the \n character in 'C' fwrite($FILE,$day,$month,$year,$number\n);
and how do i leave spaces between the entries??
so it looks like ..
13/8/01 14
14/8/00 15
im working on a simple counter that i want to make like a log file that displays the date, number, browser etc
thanks for your help..
Dave
Im only new to php..Does anyone know how to send multiple parameters to a file for appending. Say if i wanted to write four variables like this..its giving me the following error..'Wrong parameter count for fwrite()'..
$month = date("F"
$day = date("d"
$year = date("y"
$FILE = fopen("stats.txt","a"
fwrite($FILE,$day,$month,$year,$number);
fclose($FILE);
also ..how do i start a line every time the thing writes to the file..like using the \n character in 'C' fwrite($FILE,$day,$month,$year,$number\n);
and how do i leave spaces between the entries??
so it looks like ..
13/8/01 14
14/8/00 15
im working on a simple counter that i want to make like a log file that displays the date, number, browser etc
thanks for your help..
Dave