i want to create a text report and i have use this coding:-
<?php
$f=fopen("c:\amit.txt", "wb");
// adding header
$text="\n Your text to write \n ".date('d')."-".date('m')."-".date('Y')."\n\n";
fputs($f, $text);
fclose($f);
?>
which results me some thing like when i open it in windows [i.e my computer->c drive->mit.txt] :-
[]Your text to write[]09-09-2012[][]
but i want it like this
Your text to write
09-09-2012
and in fanfold paper size 14" * 12"
as i have a huge data to create a report for ex payslip of all employee in my company
plz help me